From bac29be0b7248f1d3321d1d77ad831fc7f5bc223 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 11 Feb 2016 02:52:43 -0200 Subject: [PATCH] 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. --- libraries/AP_Common/AP_Common.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libraries/AP_Common/AP_Common.h b/libraries/AP_Common/AP_Common.h index 28ab0cac59..c16cf79571 100644 --- a/libraries/AP_Common/AP_Common.h +++ b/libraries/AP_Common/AP_Common.h @@ -26,19 +26,6 @@ #include #include -#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__))