mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
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:
parent
517a7f0f35
commit
bac29be0b7
@ -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…
Reference in New Issue
Block a user