Skip to content

Commit

Permalink
sdbfs: disable -Wlanguage-extension-token warning.
Browse files Browse the repository at this point in the history
This code base isn't under our control, so disabling the specific
warning that affects it is the way to go.
  • Loading branch information
ericonr committed Aug 3, 2023
1 parent dbecc7c commit ec083dd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion third_party/meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
sdbfs_inc = include_directories(['sdbfs/lib', 'sdbfs/include/linux'])

cc = meson.get_compiler('c')
c_args = []
if cc.has_argument('-Wno-language-extension-token')
c_args += '-Wno-language-extension-token'
endif

sdbfs_lib = static_library(
'sdbfs',
['sdbfs/lib/access.c', 'sdbfs/lib/glue.c'],
include_directories: sdbfs_inc
include_directories: sdbfs_inc,
c_args: c_args
)
sdbfs = declare_dependency(link_with: sdbfs_lib, include_directories: sdbfs_inc)

0 comments on commit ec083dd

Please sign in to comment.