Skip to content
This repository has been archived by the owner on Jul 7, 2019. It is now read-only.

Commit

Permalink
Restrict SQLite compile flags on Win10
Browse files Browse the repository at this point in the history
The compile flags:
-Wno-parentheses-equality
-Wno-unused-value

Are unknown to the MSVC and cause compile errors.
  • Loading branch information
Teddy Reed committed Jul 15, 2016
1 parent f4eeaf2 commit 2610167
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sqlite3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ add_definitions(
-DSQLITE_ENABLE_DBSTAT_VTAB
)

add_compile_options(
-Wno-parentheses-equality
-Wno-unused-value
)
if(NOT WIN32)
add_compile_options(
-Wno-parentheses-equality
-Wno-unused-value
)
endif()

add_library(osquery_sqlite OBJECT sqlite3.c)

0 comments on commit 2610167

Please sign in to comment.