[dpdk-dev] [PATCH] fm10k: fix clang warning flags

Wiles, Keith keith.wiles at intel.com
Wed Feb 18 19:18:42 CET 2015



On 2/18/15, 11:57 AM, "Shaw, Jeffrey B" <jeffrey.b.shaw at intel.com> wrote:

>This commit fixes the following error which was reported when
>compiling with clang by removing the option.
>
>error: unknown warning option '-Wno-unused-but-set-variable'
>
>Signed-off-by: Jeff Shaw <jeffrey.b.shaw at intel.com>

Acked-by: keith.wiles at intel.com
>---
> lib/librte_pmd_fm10k/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/lib/librte_pmd_fm10k/Makefile b/lib/librte_pmd_fm10k/Makefile
>index 986f4ef..26663ae 100644
>--- a/lib/librte_pmd_fm10k/Makefile
>+++ b/lib/librte_pmd_fm10k/Makefile
>@@ -55,7 +55,7 @@ else ifeq ($(CC), clang)
> #
> CFLAGS_BASE_DRIVER = -Wno-unused-parameter -Wno-unused-value
> CFLAGS_BASE_DRIVER += -Wno-strict-aliasing -Wno-format-extra-args
>-CFLAGS_BASE_DRIVER += -Wno-unused-variable -Wno-unused-but-set-variable
>+CFLAGS_BASE_DRIVER += -Wno-unused-variable
> CFLAGS_BASE_DRIVER += -Wno-missing-field-initializers
> 
> else
>-- 
>2.1.0
>



More information about the dev mailing list