Skip to content

Commit

Permalink
test: _FORTIFY_SOURCE should be defined only once
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims committed Aug 12, 2024
1 parent 388fced commit 8a526b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/myproj/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ project_options(
# CLANG_WARNINGS "-Weverything"
LINKER
"${LINKER}"

# Test if _FORTIFY_SOURCE is defined only once when ENABLE_OVERFLOW_PROTECTION
ENABLE_OVERFLOW_PROTECTION
CLANG_TIDY_EXTRA_ARGUMENTS "-warnings-as-errors=clang-diagnostic-macro-redefined"
)
# NOTE: project_options and project_warnings are defined inside project_options

Expand Down

0 comments on commit 8a526b6

Please sign in to comment.