meson.build: drop the separate cpp flags
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 9 Sep 2020 01:42:17 +0000 (11:42 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 9 Sep 2020 03:57:39 +0000 (13:57 +1000)
All we care about for C++ is that we build.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
meson.build
test/build-cxx.cc

index 5c8bf1b392faa0eae7fe108c4e0e2e4433daa321..963c25b8b772548d0e090cd3c3ccf1ace12e2031 100644 (file)
@@ -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()
index c3ad4994a537b6f707ae206f58ed82d087c8aee6..327416fbee52d684c92e6d7692142ca9caf20613 100644 (file)
@@ -5,7 +5,7 @@
 using namespace std;
 
 int
-main(int argc, char **argv)
+main(void)
 {
        return 0;
 }