From baf339fb60ef923af56c1d58b9c7f0beb1b0fc7d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 1 Aug 2023 20:01:15 -0400 Subject: [PATCH] MT#55283 update to C11 Change-Id: I966a3698a66eda0ab5485eed2841b4a2044efd73 --- daemon/.ycm_extra_conf.py | 2 +- daemon/Makefile | 2 +- include/.ycm_extra_conf.py | 2 +- lib/.ycm_extra_conf.py | 2 +- recording-daemon/.ycm_extra_conf.py | 2 +- recording-daemon/Makefile | 2 +- t/.ycm_extra_conf.py | 2 +- t/Makefile | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/daemon/.ycm_extra_conf.py b/daemon/.ycm_extra_conf.py index d4532a34f..2607fa60e 100644 --- a/daemon/.ycm_extra_conf.py +++ b/daemon/.ycm_extra_conf.py @@ -60,7 +60,7 @@ flags = [ # a "-std=". # For a C project, you would set this to something like 'c99' instead of # 'c++11'. - '-std=c99', + '-std=c11', # ...and the same thing goes for the magic -x option which specifies the # language that the files to be compiled are written in. This is mostly # relevant for c++ headers. diff --git a/daemon/Makefile b/daemon/Makefile index 8b7b9c57c..0840905a0 100644 --- a/daemon/Makefile +++ b/daemon/Makefile @@ -7,7 +7,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+= -std=c99 +CFLAGS+= -std=c11 CFLAGS+= $(shell pkg-config --cflags glib-2.0) CFLAGS+= $(shell pkg-config --cflags gthread-2.0) CFLAGS+= $(shell pkg-config --cflags zlib) diff --git a/include/.ycm_extra_conf.py b/include/.ycm_extra_conf.py index 9ee5e6f00..7b695a7e4 100644 --- a/include/.ycm_extra_conf.py +++ b/include/.ycm_extra_conf.py @@ -46,7 +46,7 @@ flags = [ # a "-std=". # For a C project, you would set this to something like 'c99' instead of # 'c++11'. - '-std=c99', + '-std=c11', # ...and the same thing goes for the magic -x option which specifies the # language that the files to be compiled are written in. This is mostly # relevant for c++ headers. diff --git a/lib/.ycm_extra_conf.py b/lib/.ycm_extra_conf.py index ce9cb695d..bc17c71a0 100644 --- a/lib/.ycm_extra_conf.py +++ b/lib/.ycm_extra_conf.py @@ -57,7 +57,7 @@ flags = [ # a "-std=". # For a C project, you would set this to something like 'c99' instead of # 'c++11'. - '-std=c99', + '-std=c11', # ...and the same thing goes for the magic -x option which specifies the # language that the files to be compiled are written in. This is mostly # relevant for c++ headers. diff --git a/recording-daemon/.ycm_extra_conf.py b/recording-daemon/.ycm_extra_conf.py index 9fbff0eac..67c5b6b0c 100644 --- a/recording-daemon/.ycm_extra_conf.py +++ b/recording-daemon/.ycm_extra_conf.py @@ -40,7 +40,7 @@ flags = [ # a "-std=". # For a C project, you would set this to something like 'c99' instead of # 'c++11'. - '-std=c99', + '-std=c11', # ...and the same thing goes for the magic -x option which specifies the # language that the files to be compiled are written in. This is mostly # relevant for c++ headers. diff --git a/recording-daemon/Makefile b/recording-daemon/Makefile index 4082e7989..0f4c284f2 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=c99 -fno-strict-aliasing +CFLAGS+= -std=c11 -fno-strict-aliasing 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/.ycm_extra_conf.py b/t/.ycm_extra_conf.py index be988155c..93817917d 100644 --- a/t/.ycm_extra_conf.py +++ b/t/.ycm_extra_conf.py @@ -46,7 +46,7 @@ flags = [ # a "-std=". # For a C project, you would set this to something like 'c99' instead of # 'c++11'. - '-std=c99', + '-std=c11', # ...and the same thing goes for the magic -x option which specifies the # language that the files to be compiled are written in. This is mostly # relevant for c++ headers. diff --git a/t/Makefile b/t/Makefile index a1d7cb2ee..e910ffefc 100644 --- a/t/Makefile +++ b/t/Makefile @@ -6,7 +6,7 @@ CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-proto -Wshadow PRELOAD_CFLAGS := $(CFLAGS) CFLAGS+= -pthread -fno-strict-aliasing -CFLAGS+= -std=c99 +CFLAGS+= -std=c11 CFLAGS+= $(shell pkg-config --cflags glib-2.0) CFLAGS+= $(shell pkg-config --cflags gthread-2.0) CFLAGS+= $(shell pkg-config --cflags openssl)