Commit b01895822f74ab7488c6fee24180ce73dc50d025

Peter Pettersson 2021-08-25T18:07:01

enable gcc warnings for C11 specific extensions

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 96bdb4c..bf8d8f5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -234,6 +234,7 @@ ELSE ()
 	enable_warnings(unused-function)
 	enable_warnings(int-conversion)
 	enable_warnings(c11-extensions)
+	enable_warnings(c99-c11-compat)
 
 	# MinGW uses gcc, which expects POSIX formatting for printf, but
 	# uses the Windows C library, which uses its own format specifiers.