From: Grazvydas Ignotas Date: Sun, 2 Apr 2017 17:22:21 +0000 (+0300) Subject: amd/addrlib: fix optimized build warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0f0f3958e012335e8b1c30e4a10ed1141c7758c;p=mesa.git amd/addrlib: fix optimized build warnings 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 --- 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