[llvm] r333651 - Use -Wextra spelling instead of -W

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Thu May 31 06:41:04 PDT 2018


Author: nico
Date: Thu May 31 06:41:04 2018
New Revision: 333651

URL: http://llvm.org/viewvc/llvm-project?rev=333651&view=rev
Log:
Use -Wextra spelling instead of -W

No difference in behavior, but a bit easier to search for.
https://reviews.llvm.org/D47490

Modified:
    llvm/trunk/cmake/modules/HandleLLVMOptions.cmake

Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=333651&r1=333650&r2=333651&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Thu May 31 06:41:04 2018
@@ -555,7 +555,7 @@ if (LLVM_ENABLE_WARNINGS AND (LLVM_COMPI
     append("-Wall" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
   endif()
 
-  append("-W -Wno-unused-parameter -Wwrite-strings" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
+  append("-Wextra -Wno-unused-parameter -Wwrite-strings" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
   append("-Wcast-qual" CMAKE_CXX_FLAGS)
 
   # Turn off missing field initializer warnings for gcc to avoid noise from




More information about the llvm-commits mailing list