[libc-commits] [libc] 6d9d387 - Use -Wstrict-prototypes with clang only
via libc-commits
libc-commits at lists.llvm.org
Sun Dec 18 06:54:24 PST 2022
Author: Guillaume Chatelet
Date: 2022-12-18T15:54:21+01:00
New Revision: 6d9d387f73e81ef57bf2d203acbcd0fed02c4aa4
URL: https://github.com/llvm/llvm-project/commit/6d9d387f73e81ef57bf2d203acbcd0fed02c4aa4
DIFF: https://github.com/llvm/llvm-project/commit/6d9d387f73e81ef57bf2d203acbcd0fed02c4aa4.diff
LOG: Use -Wstrict-prototypes with clang only
Added:
Modified:
libc/cmake/modules/LLVMLibCObjectRules.cmake
Removed:
################################################################################
diff --git a/libc/cmake/modules/LLVMLibCObjectRules.cmake b/libc/cmake/modules/LLVMLibCObjectRules.cmake
index 1ececa200f804..3502bcf022fa4 100644
--- a/libc/cmake/modules/LLVMLibCObjectRules.cmake
+++ b/libc/cmake/modules/LLVMLibCObjectRules.cmake
@@ -31,10 +31,10 @@ function(_get_common_compile_options output_var flags)
list(APPEND compile_options "-Wimplicit-fallthrough")
list(APPEND compile_options "-Wwrite-strings")
list(APPEND compile_options "-Wextra-semi")
- list(APPEND compile_options "-Wstrict-prototypes")
if(NOT CMAKE_COMPILER_IS_GNUCXX)
list(APPEND compile_options "-Wnewline-eof")
list(APPEND compile_options "-Wnonportable-system-include-path")
+ list(APPEND compile_options "-Wstrict-prototypes")
list(APPEND compile_options "-Wthread-safety")
endif()
if(ADD_FMA_FLAG)
More information about the libc-commits
mailing list