From 4964b90ca55cbefe94aa95fcc938a96baaeba57b Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 10 Mar 2023 17:45:06 -0500 Subject: [PATCH] MT#55283 enable -Werror=return-type Turn missing return values into hard errors. Change-Id: I2f7e5bf11cfdce25fb6432a66b352d6e8103c037 --- daemon/Makefile | 2 +- recording-daemon/Makefile | 2 +- t/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/Makefile b/daemon/Makefile index 9940ba92c..6dceebb32 100644 --- a/daemon/Makefile +++ b/daemon/Makefile @@ -4,7 +4,7 @@ with_iptables_option ?= yes with_transcoding ?= yes -CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes +CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -Werror=return-type CFLAGS+= -pthread -fno-strict-aliasing CFLAGS+= -std=c99 CFLAGS+= $(shell pkg-config --cflags glib-2.0) diff --git a/recording-daemon/Makefile b/recording-daemon/Makefile index 8b47bc1b9..4caabc100 100644 --- a/recording-daemon/Makefile +++ b/recording-daemon/Makefile @@ -1,6 +1,6 @@ TARGET= rtpengine-recording -CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes +CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -Werror=return-type CFLAGS+= -pthread -I. -I../lib/ -I../kernel-module/ CFLAGS+= -std=c99 -fno-strict-aliasing CFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE diff --git a/t/Makefile b/t/Makefile index 4cc4c1976..79e7ea8b5 100644 --- a/t/Makefile +++ b/t/Makefile @@ -2,7 +2,7 @@ TARGET= all-tests with_transcoding ?= yes -CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes +CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -Werror=return-type PRELOAD_CFLAGS := $(CFLAGS) CFLAGS+= -pthread -fno-strict-aliasing CFLAGS+= -std=c99