From b8baa9346aaad24f8da48e408e0dbd5e65619905 Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Wed, 31 Jul 2019 11:44:42 +0100 Subject: [PATCH] Remove unnecessary warning options Both -Wmissing-field-initializers and -Wsign-compare are both covered by -Wextra which is enabled at W=1 anyway. Therefore, the explicit options are not required. Change-Id: I2e7d95b5fc14af7c70895859a7ebbeac5bc0d2a4 Signed-off-by: Justin Chadwell --- Makefile | 2 -- docs/process/security-hardening.rst | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 534896a79..65d46293e 100644 --- a/Makefile +++ b/Makefile @@ -247,8 +247,6 @@ WARNING2 += -Wcast-align WARNING2 += -Wnested-externs WARNING2 += -Wshadow WARNING2 += -Wlogical-op -WARNING2 += -Wmissing-field-initializers -WARNING2 += -Wsign-compare WARNING3 := -Wbad-function-cast WARNING3 += -Wcast-qual diff --git a/docs/process/security-hardening.rst b/docs/process/security-hardening.rst index 1a5524fd8..646b7a117 100644 --- a/docs/process/security-hardening.rst +++ b/docs/process/security-hardening.rst @@ -37,8 +37,7 @@ Several build options can be used to check for security issues. Refer to the - W=2 Adds ``Waggregate-return``, ``Wcast-align``, ``Wnested-externs``, - ``Wshadow``, ``Wlogical-op``, ``Wmissing-field-initializers`` and - ``Wsign-compare``. + ``Wshadow``, ``Wlogical-op``. - W=3