From 380cd055e7613703967824a68476ff26b0118115 Mon Sep 17 00:00:00 2001 From: Mikko Ylinen Date: Wed, 5 May 2021 07:59:28 +0300 Subject: [PATCH] opae-nlb-demo: fix GCC 11 errors With GCC 11, the build triggers errors: /usr/src/opae/opae-sdk-1.5.0-2/opae-libs/include/opae/log.h:51:1: error: this 'if' clause does not guard... [-Werror=misleading-indentation] 51 | if (p > file) \ | ^~ ... Workaround the problem with -Wno-misleading-indentation. Signed-off-by: Mikko Ylinen --- demo/opae-nlb-demo/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/demo/opae-nlb-demo/Dockerfile b/demo/opae-nlb-demo/Dockerfile index c6ba3682..c193e0af 100644 --- a/demo/opae-nlb-demo/Dockerfile +++ b/demo/opae-nlb-demo/Dockerfile @@ -27,6 +27,7 @@ RUN mkdir -p /usr/src/opae && \ RUN cd /usr/src/opae/opae-sdk-${OPAE_RELEASE} && \ mkdir build && \ cd build && \ + CFLAGS="$CFLAGS -Wno-misleading-indentation" \ cmake -DCMAKE_BUILD_TYPE=Release -DOPAE_BUILD_LIBOPAE_PY=OFF .. && \ make xfpga nlb0 nlb3