Skip to content

Version.cc: make clang-analyzer happy for cmake#10639

Merged
bneradt merged 1 commit intoapache:masterfrom
bneradt:fix_clang_analyzer_for_version_cc_for_cmake
Oct 18, 2023
Merged

Version.cc: make clang-analyzer happy for cmake#10639
bneradt merged 1 commit intoapache:masterfrom
bneradt:fix_clang_analyzer_for_version_cc_for_cmake

Conversation

@bneradt
Copy link
Copy Markdown
Contributor

@bneradt bneradt commented Oct 18, 2023

This addresses a clang-analyzer complaint about invalid_datetime being unused because BUILD_NUMBER is a constant "0" string for that build. To address this I simply move the computation and use of it below the check on BUILD_NUMBER.

This addresses a clang-analyzer complaint about invalid_datetime being
unused because BUILD_NUMBER is a constant "0" string for that build. To
address this I simply move the computation and use of it below the check
on BUILD_NUMBER.
@bneradt bneradt added this to the 10.0.0 milestone Oct 18, 2023
@bneradt bneradt self-assigned this Oct 18, 2023
@bneradt bneradt merged commit 17a8179 into apache:master Oct 18, 2023
@bneradt bneradt deleted the fix_clang_analyzer_for_version_cc_for_cmake branch October 18, 2023 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants