diff --git a/Makefile b/Makefile index ef3ee4b537230d1b0f847627b88d98e240d029a0..b9584ca982ac5f7e723c1c93219ebcd1ae51082f 100644 --- a/Makefile +++ b/Makefile @@ -261,7 +261,6 @@ WARNING3 := -Wbad-function-cast WARNING3 += -Wcast-qual WARNING3 += -Wconversion WARNING3 += -Wpacked -WARNING3 += -Wpadded WARNING3 += -Wpointer-arith WARNING3 += -Wredundant-decls WARNING3 += -Wswitch-default diff --git a/docs/process/security-hardening.rst b/docs/process/security-hardening.rst index 49678719f06b7e3f1b5cbc477d7dc70ebd18883e..a18a7920387b23998426d12317027eb466676761 100644 --- a/docs/process/security-hardening.rst +++ b/docs/process/security-hardening.rst @@ -30,9 +30,8 @@ Several build options can be used to check for security issues. Refer to the - W=1 - Adds ``Wextra``, ``Wmissing-declarations``, ``Wmissing-format-attribute``, - ``Wmissing-prototypes``, ``Wold-style-definition`` and - ``Wunused-const-variable``. + Adds ``Wextra``, ``Wmissing-format-attribute``, ``Wmissing-prototypes``, + ``Wold-style-definition`` and ``Wunused-const-variable``. - W=2 @@ -42,7 +41,7 @@ Several build options can be used to check for security issues. Refer to the - W=3 Adds ``Wbad-function-cast``, ``Wcast-qual``, ``Wconversion``, ``Wpacked``, - ``Wpadded``, ``Wpointer-arith``, ``Wredundant-decls`` and + ``Wpointer-arith``, ``Wredundant-decls`` and ``Wswitch-default``. Refer to the GCC or Clang documentation for more information on the individual