From b343cc638a058f325d766a91e14a4afd40b305e5 Mon Sep 17 00:00:00 2001 From: Petar Jovanovic Date: Thu, 17 Aug 2017 20:08:17 +0200 Subject: [PATCH] mips32: finetune vfp test to avoid compiler warnings This patch removes two compiler warnings from the test: vfp.c: In function 'handler': vfp.c:260:4: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(0); ^ vfp.c:260:4: warning: incompatible implicit declaration of built-in function 'exit' vfp.c: At top level: vfp.c:258:13: warning: 'handler' defined but not used [-Wunused-function] static void handler(int sig) ^ --- none/tests/mips32/vfp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/none/tests/mips32/vfp.c b/none/tests/mips32/vfp.c index 9412457bc1..3d03c02bc1 100644 --- a/none/tests/mips32/vfp.c +++ b/none/tests/mips32/vfp.c @@ -3,6 +3,7 @@ #include #include #include +#include unsigned int mem[] = { 0x4095A266, 0x66666666, @@ -246,6 +247,7 @@ float mem1f[] = { out); \ } +#if (__mips==32) && (__mips_isa_rev>=2) && (__mips_fpr==64 || __mips_fpr==xx) #define TEST_FPU64 \ __asm__ __volatile__( \ "cvt.l.s $f0, $f0" "\n\t" \ @@ -258,6 +260,7 @@ static void handler(int sig) { exit(0); } +#endif void ppMem(double *m, int len) { -- 2.47.2