diff --git a/m4/compiler_warnings.m4 b/m4/compiler_warnings.m4 index 79d2cbfe97..3fde795504 100644 --- a/m4/compiler_warnings.m4 +++ b/m4/compiler_warnings.m4 @@ -25,6 +25,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \ -Wdeclaration-after-statement -Wformat-security \ -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \ + -Wstrict-prototypes \ -fno-strict-aliasing -Wno-unused-but-set-variable \ -Wundef -Wimplicit-function-declaration \ -Wpointer-arith -Winit-self \ diff --git a/src/devices/wimax/iwmxsdk.c b/src/devices/wimax/iwmxsdk.c index e6b54d8bea..2508088819 100644 --- a/src/devices/wimax/iwmxsdk.c +++ b/src/devices/wimax/iwmxsdk.c @@ -31,7 +31,8 @@ #include -#include +#include "nm-wimax-util.h" + #include #include diff --git a/src/devices/wimax/iwmxsdk.h b/src/devices/wimax/iwmxsdk.h index 9a1b8196d1..c8e766964f 100644 --- a/src/devices/wimax/iwmxsdk.h +++ b/src/devices/wimax/iwmxsdk.h @@ -22,7 +22,8 @@ #ifndef __IWMXSDK_H__ #define __IWMXSDK_H__ -#include +#include "nm-wimax-util.h" + #include #include diff --git a/src/devices/wimax/nm-device-wimax.c b/src/devices/wimax/nm-device-wimax.c index ec892b68ff..34c2d2a54d 100644 --- a/src/devices/wimax/nm-device-wimax.c +++ b/src/devices/wimax/nm-device-wimax.c @@ -26,6 +26,9 @@ #include #include + +#include "nm-wimax-util.h" + #include #include diff --git a/src/devices/wimax/nm-wimax-util.c b/src/devices/wimax/nm-wimax-util.c index bca25a1dbf..3c90ebae96 100644 --- a/src/devices/wimax/nm-wimax-util.c +++ b/src/devices/wimax/nm-wimax-util.c @@ -18,7 +18,6 @@ * Copyright (C) 2009 Novell, Inc. */ -#include #include "nm-wimax-util.h" #include "nm-utils.h" #include "iwmxsdk.h" diff --git a/src/devices/wimax/nm-wimax-util.h b/src/devices/wimax/nm-wimax-util.h index d5ec0f04d7..3652123f4b 100644 --- a/src/devices/wimax/nm-wimax-util.h +++ b/src/devices/wimax/nm-wimax-util.h @@ -23,7 +23,13 @@ #include +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstrict-prototypes" + #include + +#pragma GCC diagnostic pop + #include #include "nm-wimax-types.h"