Remove warnings.

This commit is contained in:
Patrick Pelissier committed 2017-12-16 18:29:07 +01:00
1 parent 1efd7e84a7
commit 43f371b32e
1 file changed
+8
+8
View File
@@ -59,6 +59,12 @@ static void test1(void)
}
#if defined(__GNUC__)
/* The macro version will generate warnings about shadow variables.
There is no way to avoid this. */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
static int fib2(int n)
{
if (n < 2)
@@ -73,6 +79,8 @@ static int fib2(int n)
return y1 + y2;
}
#pragma GCC diagnostic pop
static void test2(void)
{
worker_init(w_g, 0, 0, NULL);