diff options
author | Grazvydas Ignotas <[email protected]> | 2017-04-02 20:22:21 +0300 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-04-03 00:48:26 +0200 |
commit | a0f0f3958e012335e8b1c30e4a10ed1141c7758c (patch) | |
tree | ecd3d23b4c6f927734570abbd7484e13208dd141 | |
parent | 8e42038d8738ad6509b12ac154508230e3c519f0 (diff) |
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 <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/amd/addrlib/core/addrcommon.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |