<div dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 6, 2016 at 3:30 PM, Edward O'Callaghan <span dir="ltr"><<a href="mailto:funfunctor@folklore1984.net" target="_blank">funfunctor@folklore1984.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Following the spirit of commit 23d1799f, fixes compilation<br>
warnings on Android build due to lack of C11 features.<br>
<br>
Signed-off-by: Edward O'Callaghan <<a href="mailto:funfunctor@folklore1984.net">funfunctor@folklore1984.net</a>><br>
---<br>
src/amd/vulkan/radv_private.h | 2 +-<br>
src/vulkan/wsi/wsi_common_<wbr>wayland.c | 2 +-<br>
src/vulkan/wsi/wsi_common_x11.<wbr>c | 2 +-<br>
3 files changed, 3 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/src/amd/vulkan/radv_private.<wbr>h b/src/amd/vulkan/radv_private.<wbr>h<br>
index def0af2..4b72017 100644<br>
--- a/src/amd/vulkan/radv_private.<wbr>h<br>
+++ b/src/amd/vulkan/radv_private.<wbr>h<br>
@@ -173,7 +173,7 @@ radv_clear_mask(uint32_t *inout_mask, uint32_t clear_mask)<br>
__dword &= ~(1 << (b)))<br>
<br>
#define typed_memcpy(dest, src, count) ({ \<br>
- static_assert(sizeof(*src) == sizeof(*dest), ""); \<br>
+ STATIC_ASSERT(sizeof(*src) == sizeof(*dest)); \<br>
memcpy((dest), (src), (count) * sizeof(*(src))); \<br>
})<br>
<br>
diff --git a/src/vulkan/wsi/wsi_common_<wbr>wayland.c b/src/vulkan/wsi/wsi_common_<wbr>wayland.c<br>
index f6c218b..2fe889e 100644<br>
--- a/src/vulkan/wsi/wsi_common_<wbr>wayland.c<br>
+++ b/src/vulkan/wsi/wsi_common_<wbr>wayland.c<br>
@@ -38,7 +38,7 @@<br>
#include <util/u_vector.h><br>
<br>
#define typed_memcpy(dest, src, count) ({ \<br>
- static_assert(sizeof(*src) == sizeof(*dest), ""); \<br>
+ STATIC_ASSERT(sizeof(*src) == sizeof(*dest)); \<br>
memcpy((dest), (src), (count) * sizeof(*(src))); \<br>
})<br>
<br>
diff --git a/src/vulkan/wsi/wsi_common_<wbr>x11.c b/src/vulkan/wsi/wsi_common_<wbr>x11.c<br>
index 56398ce..25ba0c1 100644<br>
--- a/src/vulkan/wsi/wsi_common_<wbr>x11.c<br>
+++ b/src/vulkan/wsi/wsi_common_<wbr>x11.c<br>
@@ -42,7 +42,7 @@<br>
#include "wsi_common_queue.h"<br>
<br>
#define typed_memcpy(dest, src, count) ({ \<br>
- static_assert(sizeof(*src) == sizeof(*dest), ""); \<br>
+ STATIC_ASSERT(sizeof(*src) == sizeof(*dest)); \<br>
memcpy((dest), (src), (count) * sizeof(*(src))); \<br>
})<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.9.3<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>