AP_Common: remove warnings from headers

Let the warning flag be added by the build system and not when/if the
header AP_Common.h is included. Both waf and make were already updated
to contain these warnings. Besides being in the wrong place, with
clang++ we actually can't add "-Wno-" definitions in build system
because we enable all of the in the header with -Wall.
This commit is contained in:
Lucas De Marchi 2016-02-11 02:52:43 -02:00 committed by Andrew Tridgell
parent 517a7f0f35
commit bac29be0b7

View File

@ -26,19 +26,6 @@
#include <stdlib.h>
#include <stdbool.h>
#if CONFIG_HAL_BOARD != HAL_BOARD_QURT
#pragma GCC diagnostic warning "-Wall"
#pragma GCC diagnostic warning "-Wextra"
#pragma GCC diagnostic warning "-Wlogical-op"
#pragma GCC diagnostic ignored "-Wredundant-decls"
#else
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wgnu-variable-sized-type-not-at-end"
#pragma GCC diagnostic ignored "-Wgnu-designator"
#pragma GCC diagnostic ignored "-Wabsolute-value"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#endif
// used to pack structures
#define PACKED __attribute__((__packed__))