[Mesa-dev] [Bug 105740] glsl_types.cpp(524): error: a dynamically-initialized local static variable is not allowed inside of a statement expression
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Apr 13 10:51:44 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=105740
Timothy Arceri <t_arceri at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #2 from Timothy Arceri <t_arceri at yahoo.com.au> ---
Fixed by:
commit 1e0a06000bae17e1791f55127e7527946e9b6793
Author: Rob Clark <robdclark at gmail.com>
Date: Mon Mar 26 18:45:07 2018 -0400
glsl_types: fix build break with intel/msvc compiler
The VECN() macro was taking advantage of a GCC specific feature that is
not available on lesser compilers, mostly for the purposes of avoiding a
macro that encoded a return statement.
But as suggested by Ian, we could just have the macro produce the entire
method body and avoid the need for this. So let's do that instead.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105740
Fixes: f407edf3407396379e16b0be74b8d3b85d2ad7f0
Cc: Emil Velikov <emil.velikov at collabora.com>
Cc: Timothy Arceri <tarceri at itsqueeze.com>
Cc: Roland Scheidegger <sroland at vmware.com>
Cc: Ian Romanick <idr at freedesktop.org>
Signed-off-by: Rob Clark <robdclark at gmail.com>
Acked-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180413/64d95913/attachment.html>
More information about the mesa-dev
mailing list