From d9baaacd68d2f9cb562201219c4ba765f2a829fb Mon Sep 17 00:00:00 2001 From: Anders Lindh Olsson <anders.lindholsson@ess.eu> Date: Wed, 20 Apr 2022 14:35:11 +0200 Subject: [PATCH] Set C99 as standard --- .pre-commit-config.yaml | 2 +- require.Makefile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0ceeff26..ef1fe2bb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,4 +25,4 @@ repos: rev: v1.3.5 hooks: - id: cppcheck - args: ["--enable=all", "--suppress=missingIncludeSystem", "--language=c"] + args: ["--enable=all", "--suppress=missingIncludeSystem", "--language=c", "--std=c99"] diff --git a/require.Makefile b/require.Makefile index ce1a85fb..4ecb628b 100644 --- a/require.Makefile +++ b/require.Makefile @@ -69,6 +69,8 @@ HEADERS += $(APPSRC)/require.h # We need to find the Linux link.h before the EPICS link.h USR_INCLUDES_Linux=-idirafter $(EPICS_BASE)/include +USR_CFLAGS += --std=c99 + # ESS require doesn't use T_A, because Linux should handle linux as "1" # instead of its name. ESS require can handle them within the EPICS # IOC shell internally. -- GitLab