mirror of
https://github.com/recp/cglm.git
synced 2025-12-24 12:32:40 +00:00
Merge pull request #328 from recp/werror
drop "-Werror" to allow skip warnings on production build
This commit is contained in:
@@ -43,7 +43,7 @@ if(MSVC)
|
||||
string(REGEX REPLACE "/RTC(su|[1su])" "" ${flag_var} "${${flag_var}}")
|
||||
endforeach(flag_var)
|
||||
else()
|
||||
add_compile_options(-Wall -Werror -O3)
|
||||
add_compile_options(-Wall -O3)
|
||||
endif()
|
||||
|
||||
get_directory_property(hasParent PARENT_DIRECTORY)
|
||||
|
||||
@@ -11,8 +11,7 @@ AM_CFLAGS = -Wall \
|
||||
-std=gnu11 \
|
||||
-O3 \
|
||||
-Wstrict-aliasing=2 \
|
||||
-fstrict-aliasing \
|
||||
-Werror=strict-prototypes
|
||||
-fstrict-aliasing
|
||||
|
||||
lib_LTLIBRARIES = libcglm.la
|
||||
libcglm_la_LDFLAGS = -no-undefined -version-info 0:1:0
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
AC_PREREQ([2.69])
|
||||
AC_INIT([cglm], [0.9.1], [info@recp.me])
|
||||
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects serial-tests])
|
||||
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects serial-tests])
|
||||
|
||||
# Don't use the default cflags (-O2 -g), we set ours manually in Makefile.am.
|
||||
: ${CFLAGS=""}
|
||||
|
||||
@@ -3,7 +3,6 @@ project('cglm', 'c',
|
||||
license : 'mit',
|
||||
default_options : [
|
||||
'c_std=c11',
|
||||
'werror=true',
|
||||
'warning_level=2',
|
||||
'buildtype=release'
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user