The warning -Wstrict-prototypes was disabled by commit
db9b1df0e47996ff8aaea468a11e1e97f64ee126 .
Enable it again, but avoid warnings for WiMax SDK by explicitly disabling the
compiler warning where needed.
Apparently clang does not produce a warning for -Wstrict-prototypes,
hence we don't need a clang specific #pragma.
Signed-off-by: Thomas Haller <thaller@redhat.com>
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 \
#include <glib.h>
-#include <WiMaxType.h>
+#include "nm-wimax-util.h"
+
#include <WiMaxAPI.h>
#include <WiMaxAPIEx.h>
#ifndef __IWMXSDK_H__
#define __IWMXSDK_H__
-#include <wimax/WiMaxType.h>
+#include "nm-wimax-util.h"
+
#include <wimax/WiMaxTypesEx.h>
#include <wimax/WiMaxAPIEx.h>
#include <sys/socket.h>
#include <glib/gi18n.h>
+
+#include "nm-wimax-util.h"
+
#include <WiMaxAPI.h>
#include <WiMaxAPIEx.h>
* Copyright (C) 2009 Novell, Inc.
*/
-#include <WiMaxAPI.h>
#include "nm-wimax-util.h"
#include "nm-utils.h"
#include "iwmxsdk.h"
#include <glib.h>
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstrict-prototypes"
+
#include <WiMaxType.h>
+
+#pragma GCC diagnostic pop
+
#include <WiMaxError.h>
#include "nm-wimax-types.h"