Skip to content

Commit f0044e9

Browse files
committed
Up warning level to -Wall/extra/error for non-MSVC
UTPP_AMPLIFY_WARNINGS can be turned OFF to disable the new behavior.
1 parent 7e4fff3 commit f0044e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ if (${UTPP_AMPLIFY_WARNINGS})
3232
# we are dealing with an MSVC or MSVC-like compiler (e.g. Intel on Windows)
3333
if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
3434
string(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
35+
else()
36+
string(CONCAT CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" " -Wall -Wextra -Werror -Wno-ignored-qualifiers")
3537
endif()
3638
endif()
3739

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy