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>
{ NULL, 0, NULL, 0 }
};
- memset(&context, 0, sizeof(context));
+ context = {};
i = 0;
while ((c = getopt_long(argc, argv, "x:s:", aubinator_opts, &i)) != -1) {
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