From b6bbf583839243d0979d8eaa17fad895979fc306 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 26 Sep 2024 17:50:28 -0400 Subject: [PATCH] MT#55283 enable strict aliasing We should be ok. Change-Id: Ibdf81ace9c6c62a9b58fcb56d3c80f7e0bcf62ee --- 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 f81108682..c044789b4 100644 --- a/daemon/Makefile +++ b/daemon/Makefile @@ -6,7 +6,7 @@ with_transcoding ?= yes CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -Werror=return-type \ -Wshadow -CFLAGS+= -pthread -fno-strict-aliasing +CFLAGS+= -pthread CFLAGS+= -std=c11 CFLAGS+= $(shell pkg-config --cflags glib-2.0) CFLAGS+= $(shell pkg-config --cflags gthread-2.0) diff --git a/recording-daemon/Makefile b/recording-daemon/Makefile index 9440d6d3a..6e28fc840 100644 --- a/recording-daemon/Makefile +++ b/recording-daemon/Makefile @@ -3,7 +3,7 @@ TARGET= rtpengine-recording CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -Werror=return-type \ -Wshadow CFLAGS+= -pthread -I. -I../lib/ -I../kernel-module/ -CFLAGS+= -std=c11 -fno-strict-aliasing +CFLAGS+= -std=c11 CFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE CFLAGS+= $(shell pkg-config --cflags glib-2.0) CFLAGS+= $(shell pkg-config --cflags gthread-2.0) diff --git a/t/Makefile b/t/Makefile index 5de989c41..aff19ba5b 100644 --- a/t/Makefile +++ b/t/Makefile @@ -5,7 +5,7 @@ with_transcoding ?= yes CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -Werror=return-type \ -Wshadow PRELOAD_CFLAGS := $(CFLAGS) -CFLAGS+= -pthread -fno-strict-aliasing +CFLAGS+= -pthread CFLAGS+= -std=c11 CFLAGS+= $(shell pkg-config --cflags glib-2.0) CFLAGS+= $(shell pkg-config --cflags gthread-2.0)