mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
amd/addrlib: Fix warning list for msvc
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7119>
This commit is contained in:
parent
5abac85177
commit
1b551857f9
1 changed files with 6 additions and 1 deletions
|
|
@ -52,6 +52,11 @@ files_addrlib = files(
|
|||
'src/r800/siaddrlib.h',
|
||||
)
|
||||
|
||||
cpp_args_addrlib = []
|
||||
if cpp.get_id() != 'msvc'
|
||||
cpp_args_addrlib += '-Wno-unused-variable'
|
||||
endif
|
||||
|
||||
libamdgpu_addrlib = static_library(
|
||||
'addrlib',
|
||||
files_addrlib,
|
||||
|
|
@ -62,6 +67,6 @@ libamdgpu_addrlib = static_library(
|
|||
),
|
||||
inc_amd_common, inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux,
|
||||
],
|
||||
cpp_args : ['-Wno-unused-variable'],
|
||||
cpp_args : cpp_args_addrlib,
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue