mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-06 19:10:15 +00:00
Enable more warning flags, and fix more warnings (#3065)
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
@@ -11,7 +11,6 @@ function(gpt4all_add_warning_options target)
|
||||
-Wextra-semi
|
||||
-Wformat=2
|
||||
-Wmissing-include-dirs
|
||||
-Wnull-dereference
|
||||
-Wstrict-overflow=2
|
||||
-Wvla
|
||||
# errors
|
||||
@@ -22,8 +21,6 @@ function(gpt4all_add_warning_options target)
|
||||
# disabled warnings
|
||||
-Wno-sign-compare
|
||||
-Wno-unused-parameter
|
||||
-Wno-unused-function
|
||||
-Wno-unused-variable
|
||||
)
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
target_compile_options("${target}" PRIVATE
|
||||
|
Reference in New Issue
Block a user