summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-10 16:33:55 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-10 16:33:55 +0100
commit9b5c9efd73d90e70ac61f5acc6d30d087da5a4aa (patch)
treec05f94e6202456b9a18f40ef3ccc4b12dc21f716 /Kernel
parente58a600d52be5544cab0e770b372488e35a38811 (diff)
downloadserenity-9b5c9efd73d90e70ac61f5acc6d30d087da5a4aa.zip
Kernel: Build with -Wvla
Now that all use of VLA's (variable-length arrays) has been purged from the kernel, let's make sure we don't reintroduce them.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/CMakeLists.txt b/Kernel/CMakeLists.txt
index 5347de34c9..24e6b08053 100644
--- a/Kernel/CMakeLists.txt
+++ b/Kernel/CMakeLists.txt
@@ -287,7 +287,7 @@ set(SOURCES
${C_SOURCES}
)
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-warning-option")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-warning-option -Wvla")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pie -fPIE -fno-rtti -ffreestanding -fbuiltin")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mno-80387 -mno-mmx -mno-sse -mno-sse2")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-asynchronous-unwind-tables")