mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 02:10:07 +01:00
meson.build: drop the separate cpp flags
All we care about for C++ is that we build. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ad2216b4c8
commit
c6f87ade84
2 changed files with 8 additions and 4 deletions
10
meson.build
10
meson.build
|
|
@ -42,10 +42,14 @@ libinput_so_version = '@0@.@1@.@2@'.format((libinput_lt_c - libinput_lt_a),
|
|||
|
||||
# Compiler setup
|
||||
cc = meson.get_compiler('c')
|
||||
cppflags = ['-Wno-unused-parameter', '-fvisibility=hidden']
|
||||
cflags = cppflags + ['-Wmissing-prototypes', '-Wstrict-prototypes']
|
||||
cflags = [
|
||||
'-Wno-unused-parameter',
|
||||
'-Wmissing-prototypes',
|
||||
'-Wstrict-prototypes'
|
||||
|
||||
'-fvisibility=hidden',
|
||||
]
|
||||
add_project_arguments(cflags, language : 'c')
|
||||
add_project_arguments(cppflags, language : 'cpp')
|
||||
|
||||
# config.h
|
||||
config_h = configuration_data()
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
using namespace std;
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
main(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue