Fix qc_sqlite compilation failure with GCC 11
The sqlite code is indented oddly: In file included from query_classifier/qc_sqlite/qc_sqlite3.c:21: sqlite-bld-3110100/sqlite3.c:98051:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 98051 | if( a[0]<33 ) a[0] = 33; assert( 33==sqlite3LogEst(10) ); | ^~ sqlite-bld-3110100/sqlite3.c:98051:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 98051 | if( a[0]<33 ) a[0] = 33; assert( 33==sqlite3LogEst(10) ); | ^~~~~~
This commit is contained in:
parent
2d102b2a33
commit
b7e4ee6faa
@ -12,7 +12,7 @@ include_directories(${CMAKE_BINARY_DIR}/sqlite-bld-3110100)
|
||||
include_directories(${MARIADB_CONNECTOR_INCLUDE_DIR})
|
||||
|
||||
# GCC thinks there is an array-bounds error in sqlite code.
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=array-bounds")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=array-bounds -Wno-misleading-indentation")
|
||||
|
||||
add_library(qc_sqlite SHARED qc_sqlite.cc qc_sqlite3.c builtin_functions.c)
|
||||
add_dependencies(qc_sqlite maxscale_sqlite)
|
||||
|
Loading…
x
Reference in New Issue
Block a user