Fix braces warning treated as error.
On some platforms, nested braces are required for nested initializers,
or a warning will be produced which is treated as an error.
Change-Id: I4806ee13869bfe5c5c41505552cd03ff6bdde85e
Reviewed-on: https://swiftshader-review.googlesource.com/20248
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5a37ce2..17b488d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -165,6 +165,7 @@
set_cpp_flag("-Wall")
set_cpp_flag("-Werror=reorder")
set_cpp_flag("-Werror=sign-compare")
+ set_cpp_flag("-Werror=missing-braces")
set_cpp_flag("-fno-exceptions")
# Remove xor, and, or and friends from the list of keywords, they are used