[PATCH] selftests/powerpc: Specify we expect to build with std=gnu99

Subsystems: kernel selftest framework, the rest

STALE3655d

2 messages, 2 authors, 2016-08-11 · open the first message on its own page

[PATCH] selftests/powerpc: Specify we expect to build with std=gnu99

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-07-29 10:48:21

We have some tests that assume we're using std=gnu99, which is fine on
most compilers, but some old compilers use a different default.

So make it explicit that we want to use std=gnu99.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 tools/testing/selftests/powerpc/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/powerpc/Makefile b/tools/testing/selftests/powerpc/Makefile
index c6e1745b2a74..f9d311bc4130 100644
--- a/tools/testing/selftests/powerpc/Makefile
+++ b/tools/testing/selftests/powerpc/Makefile
@@ -8,7 +8,7 @@ ifeq ($(ARCH),powerpc)
 
 GIT_VERSION = $(shell git describe --always --long --dirty || echo "unknown")
 
-CFLAGS := -Wall -O2 -Wall -Werror -DGIT_VERSION='"$(GIT_VERSION)"' -I$(CURDIR) $(CFLAGS)
+CFLAGS := -std=gnu99 -Wall -O2 -Wall -Werror -DGIT_VERSION='"$(GIT_VERSION)"' -I$(CURDIR) $(CFLAGS)
 
 export CFLAGS
 
-- 
2.7.4

Re: selftests/powerpc: Specify we expect to build with std=gnu99

From: Michael Ellerman <hidden>
Date: 2016-08-11 11:16:49

On Fri, 2016-29-07 at 10:48:09 UTC, Michael Ellerman wrote:
We have some tests that assume we're using std=gnu99, which is fine on
most compilers, but some old compilers use a different default.

So make it explicit that we want to use std=gnu99.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Applied to powerpc fixes.

https://git.kernel.org/powerpc/c/ca49e64f0cb1368fc666a53b16

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help