Skip to content

Commit 22b8c24

Browse files
committed
Turn off uninitialized warnings for GCC up to 14.
Although the false positives that caused it to be disabled originally may have been fixed in GCC 12, GCC also suffers from a problem where -Wuninitialized may cause the build to hang on some platforms (GCC #120729). This has been fixed in GCC 15, so turn on -Wuninitialized for GCC 15+ instead of GCC 12+.
1 parent 498aead commit 22b8c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/cmake/config-ix.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ set(USE_NO_UNINITIALIZED 0)
510510
# false positives.
511511
if (CMAKE_COMPILER_IS_GNUCXX)
512512
# Disable all -Wuninitialized warning for old GCC versions.
513-
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.0)
513+
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 15.0)
514514
set(USE_NO_UNINITIALIZED 1)
515515
else()
516516
set(USE_NO_MAYBE_UNINITIALIZED 1)

0 commit comments

Comments
 (0)