From: Aaron Conole Date: Wed, 30 Mar 2016 14:06:36 +0000 (-0400) Subject: e1000: suppress misleading indentation warning X-Git-Tag: spdx-start~7135 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=366113dbfb69625cd0ad88d216d75621af513128;hp=29815f5a2331d361593ec62f3a54d154423a192d;p=dpdk.git e1000: suppress misleading indentation warning The register read/write mphy functions have misleading whitespace around the `locked` check. This cleanup merely preserves the existing functionality and suppresses future gcc versions' "misleading indentation" warning. Suggested-by: Panu Matilainen Signed-off-by: Aaron Conole Acked-by: Wenzhuo Lu --- diff --git a/drivers/net/e1000/Makefile b/drivers/net/e1000/Makefile index ccd2b7bdd4..f4879e6716 100644 --- a/drivers/net/e1000/Makefile +++ b/drivers/net/e1000/Makefile @@ -54,6 +54,9 @@ else # CFLAGS_BASE_DRIVER = -Wno-uninitialized -Wno-unused-parameter CFLAGS_BASE_DRIVER += -Wno-unused-variable +ifeq ($(shell test $(GCC_VERSION) -ge 60 && echo 1), 1) +CFLAGS_BASE_DRIVER += -Wno-misleading-indentation +endif endif #