[Mesa-dev] [PATCH] amd/addrlib: fix optimized build warnings
Marek Olšák
maraeo at gmail.com
Sun Apr 2 22:49:53 UTC 2017
Pushed. Thanks.
Marek
On Sun, Apr 2, 2017 at 7:22 PM, Grazvydas Ignotas <notasas at gmail.com> wrote:
> All the -Wunused-but-set-variable ones.
> Found a way to do it with a oneliner.
>
> Signed-off-by: Grazvydas Ignotas <notasas at gmail.com>
> ---
> no commit access (currently pending)
>
> 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 3911d79..66424a8 100644
> --- a/src/amd/addrlib/core/addrcommon.h
> +++ b/src/amd/addrlib/core/addrcommon.h
> @@ -66,11 +66,11 @@
> // Debug assertions used in AddrLib
> ////////////////////////////////////////////////////////////////////////////////////////////////////
> #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
> #define ADDR_ASSERT(__e) \
> do { \
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list