From a0f0f3958e012335e8b1c30e4a10ed1141c7758c Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Sun, 2 Apr 2017 20:22:21 +0300 Subject: [PATCH] amd/addrlib: fix optimized build warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit All the -Wunused-but-set-variable ones. Found a way to do it with a oneliner. Signed-off-by: Grazvydas Ignotas Signed-off-by: Marek Olšák --- src/amd/addrlib/core/addrcommon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/addrlib/core/addrcommon.h b/src/amd/addrlib/core/addrcommon.h index 7645c50..907b9f4 100644 --- a/src/amd/addrlib/core/addrcommon.h +++ b/src/amd/addrlib/core/addrcommon.h @@ -68,7 +68,7 @@ #if defined(_WIN32) && (_MSC_VER >= 1400) #define ADDR_ANALYSIS_ASSUME(expr) __analysis_assume(expr) #else - #define ADDR_ANALYSIS_ASSUME(expr) do { } while (0) + #define ADDR_ANALYSIS_ASSUME(expr) do { (void)(expr); } while (0) #endif #if DEBUG -- 2.7.4