Skip to contentSkip to conversation

fm10k: fix clang warning flags

PATCH Applied Jeff Shaw 3 participants 3 messages Feb 18, 2015 – Feb 24, 2015 2 messages not in the archive

lore
Share & tools
lore

Jeff Shaw

author
#0 lore raw

PATCH 1/1 fm10k: fix clang warning flags

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'

---
 lib/librte_pmd_fm10k/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_pmd_fm10k/Makefile +1 -1
index 986f4ef..26663ae 100644
@@ -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
Signature · 1 line
2.1.0

A message that is not in the archive (sent off-list or not yet received): 1424282263-28429-1-git-send-email-jeffrey.b.shaw-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org

Acked-by
#2 lore raw
Quoted 6 lines · Jeffrey B

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'

Quoted 20 lines

---
lib/librte_pmd_fm10k/Makefile | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_pmd_fm10k/Makefile +0 -0
index 986f4ef..26663ae 100644
@@ -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

lib/librte_pmd_fm10k/Makefile +1 -1
-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

Signature · 1 line
2.1.0

A message that is not in the archive (sent off-list or not yet received): D10A337C.13CCD%[email protected]