From e329fac278e3b6294966fd5fd00860744248ae69 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Tue, 26 Oct 2021 21:57:10 +0200 Subject: tests: declare local variable local Declare local variable local by declaring it static. This avoids the clang warning about the variable not being declared static. --- tests/test-pedantic-compilation.c | 1 + tests/test-pedantic-compilation.cxx | 1 + 2 files changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/test-pedantic-compilation.c b/tests/test-pedantic-compilation.c index f2b254b5d..2dab8cb5e 100644 --- a/tests/test-pedantic-compilation.c +++ b/tests/test-pedantic-compilation.c @@ -18,6 +18,7 @@ #include #ifdef __STDC_VERSION__ +static unsigned long stdc_version = __STDC_VERSION__; #endif diff --git a/tests/test-pedantic-compilation.cxx b/tests/test-pedantic-compilation.cxx index b11dcc529..7d3251ee1 100644 --- a/tests/test-pedantic-compilation.cxx +++ b/tests/test-pedantic-compilation.cxx @@ -17,6 +17,7 @@ #include #include +static unsigned long cxx_version = __cplusplus; int main() -- cgit v1.2.1