[PATCH] D47490: Use -Wextra spelling instead of -W

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 29 11:28:08 PDT 2018


thakis created this revision.
thakis added a reviewer: rnk.
Herald added a subscriber: mgorny.

No difference in behavior, but a bit easier to search for.


https://reviews.llvm.org/D47490

Files:
  cmake/modules/HandleLLVMOptions.cmake


Index: cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- cmake/modules/HandleLLVMOptions.cmake
+++ cmake/modules/HandleLLVMOptions.cmake
@@ -555,7 +555,7 @@
     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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47490.148953.patch
Type: text/x-patch
Size: 574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180529/004c0fd2/attachment.bin>


More information about the llvm-commits mailing list