Commit 8371beb1 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Forbid VLAs

parent c7304b06
...@@ -50,7 +50,8 @@ flags = [ ...@@ -50,7 +50,8 @@ flags = [
'-Wextra', '-Wextra',
'-pedantic', '-pedantic',
'-Wmissing-declarations', '-Wmissing-declarations',
'-Werror=implicit-function-declaration' '-Werror=implicit-function-declaration',
'-Werror=vla'
] ]
flags = cc.get_supported_arguments(flags) flags = cc.get_supported_arguments(flags)
...@@ -58,6 +59,7 @@ flags = cc.get_supported_arguments(flags) ...@@ -58,6 +59,7 @@ flags = cc.get_supported_arguments(flags)
pc_requires_private = [] pc_requires_private = []
libnotify = dependency('libnotify', version: '>=0.7.0', required: false) libnotify = dependency('libnotify', version: '>=0.7.0', required: false)
jsonc = dependency('json-c', required: false) jsonc = dependency('json-c', required: false)
if get_option('enable-notify') and libnotify.found() if get_option('enable-notify') and libnotify.found()
build_dependencies += libnotify build_dependencies += libnotify
defines += '-DWITH_LIBNOTIFY' defines += '-DWITH_LIBNOTIFY'
...@@ -103,7 +105,7 @@ sources = files( ...@@ -103,7 +105,7 @@ sources = files(
) )
sources += girara_css sources += girara_css
# header fiels to install # header files to install
headers = files( headers = files(
'girara/callbacks.h', 'girara/callbacks.h',
'girara/commands.h', 'girara/commands.h',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment