From db8a2c15fa6ec55041886ebacd49ed8fcbebd2ce Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 16 Feb 2023 10:59:56 +0800 Subject: [PATCH] build: cmake: silence -Wuninitialized warning Signed-off-by: Kefu Chai --- cql3/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cql3/CMakeLists.txt b/cql3/CMakeLists.txt index ef16a69db5..c0001b6424 100644 --- a/cql3/CMakeLists.txt +++ b/cql3/CMakeLists.txt @@ -3,6 +3,9 @@ include(generate_cql_grammar) generate_cql_grammar( GRAMMAR Cql.g SOURCES cql_grammar_srcs) +set_source_files_properties(${cql_grammar_srcs} + PROPERTIES + COMPILE_FLAGS "-Wno-uninitialized") add_library(cql3 STATIC) target_sources(cql3