Browse Source

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.
master
Lucas De Marchi 9 years ago committed by Andrew Tridgell
parent
commit
bac29be0b7
  1. 13
      libraries/AP_Common/AP_Common.h

13
libraries/AP_Common/AP_Common.h

@ -26,19 +26,6 @@ @@ -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__))

Loading…
Cancel
Save