From d6267e623bba44126a9493bda003a9d029bc2721 Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Sat, 8 Jul 2023 23:16:15 +0300 Subject: [PATCH] drop "-Werror" to allow skip warnings on production build --- CMakeLists.txt | 2 +- Makefile.am | 3 +-- configure.ac | 2 +- meson.build | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d621cc94..f91e1dd1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/Makefile.am b/Makefile.am index 1eeb9884..4fae2b0a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/configure.ac b/configure.ac index 44ff7389..13f9ee52 100644 --- a/configure.ac +++ b/configure.ac @@ -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=""} diff --git a/meson.build b/meson.build index 69d73e2f..8abe71e8 100644 --- a/meson.build +++ b/meson.build @@ -3,7 +3,6 @@ project('cglm', 'c', license : 'mit', default_options : [ 'c_std=c11', - 'werror=true', 'warning_level=2', 'buildtype=release' ]