Skip to content

Conversation

@derekmauro
Copy link
Member

These warning were initially reported by Chromium, and I've managed to fix the Abseil testing configuration to find these warnings.

Currently CCTZ doesn't test clang on Windows.

These warning were initially reported by Chromium, and I've managed to
fix the Abseil testing configuration to find these warnings.

Currently CCTZ doesn't test clang on Windows.
@derekmauro derekmauro requested a review from dinord November 25, 2025 21:26
@derekmauro derekmauro merged commit 46d62c0 into google:master Nov 26, 2025
7 checks passed
@derekmauro derekmauro deleted the windows-sign-compare branch November 26, 2025 01:38
#include <string>
#include <vector>
#if !HAS_STRPTIME
#if !defined(HAS_STRPTIME)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#if !defined(HAS_STRPTIME) is not the same as #if !HAS_STRPTIME when HAS_STRPTIME=0, which is intended to be a valid way to say "I don't have strptime()".

I see that we have #if defined(HAS_STRPTIME) && HAS_STRPTIME in another place (presumably to workaround the same warning), so I suggest we rework these new changes with the negation of that.

[All that said, I'm not a fan of -Wundef, but I guess that's a lost argument.]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#331 addresses this comment.

derekmauro added a commit to derekmauro/cctz that referenced this pull request Nov 26, 2025
Builds now always have a default value of 0 or 1 for HAS_STRPTIME,
but it can be overridden on the commandline.

This is to address -Wundef warnings, and the feedback from google#330.
derekmauro added a commit that referenced this pull request Dec 1, 2025
Builds now always have a default value of 0 or 1 for HAS_STRPTIME,
but it can be overridden on the command-line.

This is to address -Wundef warnings, and the feedback from #330.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants