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