Skip to content

Commit

Permalink
Do not add -Wno-gnu-zero-variadic-macro-arguments for GCC in CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
odygrd committed Dec 7, 2024
1 parent 2620594 commit 44db3ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
## TBD

- Suppress `-Wredundant-decls` warning in GCC builds.
- Avoid adding `-Wno-gnu-zero-variadic-macro-arguments` for GCC in CMake.

## v7.5.0

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ target_include_directories(${TARGET_NAME}

# Compiler options
target_compile_options(${TARGET_NAME} INTERFACE
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:-Wno-gnu-zero-variadic-macro-arguments>)
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:-Wno-gnu-zero-variadic-macro-arguments>)

# Install
if (QUILL_MASTER_PROJECT OR QUILL_ENABLE_INSTALL)
Expand Down

0 comments on commit 44db3ff

Please sign in to comment.