From a0f0f3958e012335e8b1c30e4a10ed1141c7758c Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Sun, 2 Apr 2017 20:22:21 +0300 Subject: amd/addrlib: fix optimized build warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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(-) (limited to 'src/amd') diff --git a/src/amd/addrlib/core/addrcommon.h b/src/amd/addrlib/core/addrcommon.h index 7645c505c45..907b9f4eaeb 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 -- cgit v1.2.3