mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
Fix all GCC 10 warnings
Change-Id: Ibabab265e734a4a421a38ab586e7e11905fa5da1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/64740 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
e0da9ffedd
commit
999cc24209
@@ -17,6 +17,11 @@
|
||||
#include "webgpu/webgpu_cpp.h"
|
||||
{% endif %}
|
||||
|
||||
#ifdef __GNUC__
|
||||
// error: 'offsetof' within non-standard-layout type 'wgpu::XXX' is conditionally-supported
|
||||
#pragma GCC diagnostic ignored "-Winvalid-offsetof"
|
||||
#endif
|
||||
|
||||
namespace wgpu {
|
||||
{% for type in by_category["enum"] %}
|
||||
{% set CppType = as_cppType(type.name) %}
|
||||
|
||||
Reference in New Issue
Block a user