[dpdk-dev] net/failsafe: fix compilation issues on GCC 4.8.5

Message ID 08904b2a93a84bfebf6676d040d1cdf2dcd2e5f6.1500470158.git.gaetan.rivet@6wind.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Gaëtan Rivet July 19, 2017, 1:18 p.m. UTC
  Reintroduce the -pedantic flag to highlight those mistakes.

Fixes: 57a089a5020f ("net/failsafe: add fail-safe PMD")

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
---

 drivers/net/failsafe/Makefile | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Ferruh Yigit July 19, 2017, 1:29 p.m. UTC | #1
On 7/19/2017 2:18 PM, Gaetan Rivet wrote:
> Reintroduce the -pedantic flag to highlight those mistakes.
> 
> Fixes: 57a089a5020f ("net/failsafe: add fail-safe PMD")
> 
> Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>

Squashed into relevant commit in next-net, thanks.
  

Patch

diff --git a/drivers/net/failsafe/Makefile b/drivers/net/failsafe/Makefile
index cec33df..32aaaa2 100644
--- a/drivers/net/failsafe/Makefile
+++ b/drivers/net/failsafe/Makefile
@@ -54,7 +54,9 @@  CFLAGS += -std=c11 -Wextra
 CFLAGS += -O3
 CFLAGS += -I.
 CFLAGS += -D_DEFAULT_SOURCE
+CFLAGS += -D_XOPEN_SOURCE=700
 CFLAGS += $(WERROR_FLAGS)
 CFLAGS += -Wno-strict-prototypes
+CFLAGS += -pedantic
 
 include $(RTE_SDK)/mk/rte.lib.mk