[PATCH] openbsc[master]: Turn some warnings into errors

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Wed Dec 7 10:25:52 UTC 2016


Review at  https://gerrit.osmocom.org/1368

Turn some warnings into errors

Make warnings related to common memory-related issues into warnings to
harden the source and decrease chance of errors.

Change-Id: Ied9c950dafa65f324cf31298b13b590f56139700
---
M openbsc/src/Makefile.am
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/68/1368/1

diff --git a/openbsc/src/Makefile.am b/openbsc/src/Makefile.am
index cfad7df..f7ba8ac 100644
--- a/openbsc/src/Makefile.am
+++ b/openbsc/src/Makefile.am
@@ -6,6 +6,8 @@
 
 AM_CFLAGS = \
 	-Wall \
+	-Werror=implicit -Werror=maybe-uninitialized -Werror=memset-transposed-args -Werror=null-dereference \
+	-Werror=sizeof-pointer-memaccess -Werror=sizeof-array-argument \
 	$(LIBOSMOCORE_CFLAGS) \
 	$(LIBOSMOGSM_CFLAGS) \
 	$(LIBOSMOGSM_CFLAGS) \

-- 
To view, visit https://gerrit.osmocom.org/1368
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ied9c950dafa65f324cf31298b13b590f56139700
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list