mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 00:30:11 +01:00
intel: Fixes compile error of aubinator_viewer.cpp with gcc
Remove '-Wno-class-memaccess' from cpp_args because clang don't support this option aubinator_viewer.cpp:1183:39: error: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct Context'; use assignment or value-initialization instead [-Werror=class-memaccess] 1183 | memset(&context, 0, sizeof(context)); Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18024>
This commit is contained in:
parent
1b38ca7844
commit
44a64a34bf
2 changed files with 2 additions and 2 deletions
|
|
@ -1180,7 +1180,7 @@ int main(int argc, char *argv[])
|
|||
{ NULL, 0, NULL, 0 }
|
||||
};
|
||||
|
||||
memset(&context, 0, sizeof(context));
|
||||
context = {};
|
||||
|
||||
i = 0;
|
||||
while ((c = getopt_long(argc, argv, "x:s:", aubinator_opts, &i)) != -1) {
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ if with_tools.contains('intel-ui')
|
|||
link_with : [libintel_common, libintel_compiler, libintel_dev, libaub],
|
||||
c_args : [no_override_init_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
cpp_args : ['-fpermissive', '-Wno-parentheses', '-Wno-class-memaccess'],
|
||||
cpp_args : ['-fpermissive', '-Wno-parentheses'],
|
||||
install : true
|
||||
)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue