Skip to content

Commit

Permalink
Warnings should be errors
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Maddock <[email protected]>
  • Loading branch information
EbonJaeger committed Aug 1, 2021
1 parent 57e80c9 commit 9cfeb5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 3 additions & 5 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
project('budgie-trash-applet', 'c',
version: '2.0.0',
meson_version: '>= 0.57.0',
default_options: [
'warning_level=2',
'werror=true',
'c_std=gnu11',
],
)

add_project_arguments([
'-I' + meson.current_build_dir(),
], language: 'c')

gnome = import('gnome')

#
Expand All @@ -20,7 +18,7 @@ prefix = get_option('prefix')
libdir = join_paths(prefix, get_option('libdir'))
datadir = join_paths(prefix, get_option('datadir'))
localedir = join_paths(prefix, get_option('localedir'))
podir = join_paths(meson.source_root(), 'po')
podir = join_paths(meson.current_source_dir(), 'po')

APPLET_INSTALL_DIR = join_paths(libdir, 'budgie-desktop', 'plugins', 'com.github.EbonJaeger.budgie-trash-applet')

Expand Down
6 changes: 5 additions & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
add_project_arguments('-Db_sanitize=address', language: 'c')
add_global_arguments([
'-I' + meson.current_build_dir(),
'-Db_sanitize=address',
'-Dwerror=true'
], language: 'c')

trash_applet_deps = [
dependency('budgie-1.0', version: '>= 2'),
Expand Down

0 comments on commit 9cfeb5e

Please sign in to comment.