-
Type:
Task
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
The build log from clang-12 is attached.
For looking through all the warnings, search for pattern "[-W"
The most interesting ones are: -Wcast-calling-convention, -Wuninitialized, -Wsometimes-uninitialized, -Wsizeof-array-div
NOTE: some warnings were disabled for clang-cl, check cmakefiles
After fixing one class of warnings, it makes sense to convert it to an error. Something like this should be put into gcc.cmake and tested on a CI:
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
add_compile_options("$<$<COMPILE_LANGUAGE:C,CXX>:-Werror=cast-calling-convention>")
|
endif()
|
- is duplicated by
-
CORE-17794 Huge number of warnings when compiling with Clang
-
- Resolved
-
- relates to
-
CORE-7538 Make critical MSVC warnings into errors
-
- Open
-
-
CORE-14306 (GitHub Actions) clang-cl 10 reports some warnings: review/fix them
-
- Open
-
-
CORE-17547 [GitHub] Clang-Cl 12.0.0: 'error: function declaration cannot have variably modified type'
-
- Resolved
-