Remove warnings.
This commit is contained in:
1 parent
1efd7e84a7
commit
43f371b32e
1 file changed
+8
@@ -59,6 +59,12 @@ static void test1(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__GNUC__)
|
#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)
|
static int fib2(int n)
|
||||||
{
|
{
|
||||||
if (n < 2)
|
if (n < 2)
|
||||||
@@ -73,6 +79,8 @@ static int fib2(int n)
|
|||||||
return y1 + y2;
|
return y1 + y2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
static void test2(void)
|
static void test2(void)
|
||||||
{
|
{
|
||||||
worker_init(w_g, 0, 0, NULL);
|
worker_init(w_g, 0, 0, NULL);
|
||||||
|
|||||||
Reference in new issue
Block a user