]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Intel compilers: update deprecated -wn to -Wall style
authorMichael Hirsch <scivision@users.noreply.github.com>
Tue, 25 Jan 2022 00:22:01 +0000 (19:22 -0500)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 25 Jan 2022 12:26:31 +0000 (13:26 +0100)
This removes warnings on every single target like:
icx: command line warning #10430: Unsupported command line options encountered
These options as listed are not supported.
For more information, use '-qnextgen-diag'.
option list:
        -w3

Signed-off-by: Michael Hirsch <michael@scivision.dev>
CMakeLists.txt

index 454159bb7444b6b5b57c4dae6015ae0472f46baf..72d43416553d597df6a21127978437da793c998e 100644 (file)
@@ -151,13 +151,13 @@ if(WITH_GZFILEOP)
     add_definitions(-DWITH_GZFILEOP)
 endif()
 
-if(CMAKE_C_COMPILER_ID MATCHES "Intel")
+if(CMAKE_C_COMPILER_ID MATCHES "^Intel")
     if(CMAKE_HOST_UNIX)
-        set(WARNFLAGS "-w3")
-        set(WARNFLAGS_MAINTAINER "-w3 -Wcheck -Wremarks")
+        set(WARNFLAGS "-Wall")
+        set(WARNFLAGS_MAINTAINER "-Wall -Wcheck -Wremarks")
         set(WARNFLAGS_DISABLE "")
     else()
-        set(WARNFLAGS "/W3")
+        set(WARNFLAGS "/Wall")
         set(WARNFLAGS_MAINTAINER "/W5")
         set(WARNFLAGS_DISABLE "")
         endif()