From e84dadf7ab9fe9de72dd041eb4fe63a206d5ae45 Mon Sep 17 00:00:00 2001 From: Hao Yao Date: Fri, 22 Mar 2024 11:41:23 +0800 Subject: [PATCH] Fix build warnings with GCC 13 Signed-off-by: Hao Yao --- src/Makefile.am | 4 ++-- src/interfaces/Makefile.am | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 331bf64..7a41c94 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -84,7 +84,7 @@ libgsticamerasrc_la_CPPFLAGS += -DCHROME_SLIM_CAMHAL endif # for hardening-check -libgsticamerasrc_la_CPPFLAGS+= -fstack-protector -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security +libgsticamerasrc_la_CPPFLAGS+= -fstack-protector -fPIE -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security libgsticamerasrc_la_LIBADD = $(GST_LIBS) \ -lgstallocators-$(GST_API_VERSION) \ @@ -95,7 +95,7 @@ libgsticamerasrc_la_LIBADD = $(GST_LIBS) \ libgsticamerasrc_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) # for hardening-check -libgsticamerasrc_la_LDFLAGS += -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Wl,-z,relro -Wl,-z,now +libgsticamerasrc_la_LDFLAGS += -fPIE -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Wl,-z,relro -Wl,-z,now # headers we need but don't want installed noinst_HEADERS = gstcamerasrc.h \ diff --git a/src/interfaces/Makefile.am b/src/interfaces/Makefile.am index 0cd71a8..afdcc25 100644 --- a/src/interfaces/Makefile.am +++ b/src/interfaces/Makefile.am @@ -59,12 +59,12 @@ libgsticamerainterface_@GST_API_VERSION@_la_CPPFLAGS += -DCHROME_SLIM_CAMHAL endif # for hardening-check -libgsticamerainterface_@GST_API_VERSION@_la_CPPFLAGS += -fstack-protector-all -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security +libgsticamerainterface_@GST_API_VERSION@_la_CPPFLAGS += -fstack-protector-all -fPIE -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security libgsticamerainterface_@GST_API_VERSION@_la_LIBADD = $(GST_LIBS) $(CAMHAL_LIBS) # for hardening-check -libgsticamerainterface_@GST_API_VERSION@_la_LDFLAGS = -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Wl,-z,relro -Wl,-z,now -version-info $(LT_VERSION_INFO) +libgsticamerainterface_@GST_API_VERSION@_la_LDFLAGS = -fPIE -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Wl,-z,relro -Wl,-z,now -version-info $(LT_VERSION_INFO) libgsticamerainterfaceincludedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/icamera