Skip to content

Commit

Permalink
meson: enable error on missing function declaration
Browse files Browse the repository at this point in the history
This is also enabled in configure.ac.
  • Loading branch information
robUx4 committed Jan 11, 2023
1 parent 86611b3 commit 6424f54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,12 @@ if host_system == 'windows'

endif

if cc.has_argument('-Werror-implicit-function-declaration')
add_project_arguments('-Werror-implicit-function-declaration', language : ['c', 'cpp'])
elif cc.has_argument('-we4013')
add_project_arguments('-we4013', language : ['c', 'cpp'])
endif

#
# Check if other libs are needed
#
Expand Down

0 comments on commit 6424f54

Please sign in to comment.