g-i: silence 'nested extern' compiler warnings when building scanner binary
authorTim-Philipp Müller <tim@centricular.com>
Sat, 23 Mar 2019 18:57:24 +0000 (18:57 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 23 Mar 2019 18:57:24 +0000 (18:57 +0000)
We need a nested extern in our init section for the scanner binary
so we can call gst_init to make sure GStreamer types are initialised
(they are not all lazy init via get_type functions, but some are in
exported variables). There doesn't seem to be any other mechanism to
achieve this, so just remove that warning, it's not important at all.

meson.build

index 45a20394c6159f66e85075a7689efd1c82b6aebb..3c10943c0eec6d437023f571294f3fe3a1f0b750 100644 (file)
@@ -189,7 +189,6 @@ warning_c_flags = [
   '-Wmissing-prototypes',
   '-Wdeclaration-after-statement',
   '-Wold-style-definition',
-  '-Wnested-externs',
 ]
 
 warning_cxx_flags = [