summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2017-08-04 17:41:33 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2017-08-08 16:16:44 +0800
commitbcbe5c9f221f2864c8cd14f16558f3d8fe1d4fd7 (patch)
tree8728b462a0b83842807fa7ade3289e9269665186 /meson.build
parent9b11f357f9f968849c70044eaac5d43713436c94 (diff)
downloadpango-bcbe5c9f221f2864c8cd14f16558f3d8fe1d4fd7.tar.gz
meson: Clean up things a bit on Visual Studio
We can just force-include msvc_recommended_pragmas.h, which will silence the unwanted noise and point out to us potential problems in the code. https://bugzilla.gnome.org/show_bug.cgi?id=783274
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build21
1 files changed, 2 insertions, 19 deletions
diff --git a/meson.build b/meson.build
index 446419e7..a15922d9 100644
--- a/meson.build
+++ b/meson.build
@@ -52,25 +52,8 @@ common_ldflags = []
if cc.get_id() == 'msvc'
# Compiler options taken from msvc_recommended_pragmas.h
# in GLib, based on _Win32_Programming_ by Rector and Newcomer
- test_cflags = [
- '-we4002', # too many actual parameters for macro
- '-we4003', # not enough actual parameters for macro
- '-w14010', # single-line comment contains line-continuation character
- '-we4013', # 'function' undefined; assuming extern returning int
- '-w14016', # no function return type; using int as default
- '-we4020', # too many actual parameters
- '-we4021', # too few actual parameters
- '-we4027', # function declared without formal parameter list
- '-we4029', # declared formal parameter list different from definition
- '-we4033', # 'function' must return a value
- '-we4035', # 'function' : no return value
- '-we4045', # array bounds overflow
- '-we4047', # different levels of indirection
- '-we4049', # terminating line number emission
- '-we4053', # an expression of type void was used as an operand
- '-we4071', # no function prototype given
- '-we4819', # the file contains a character that cannot be represented in the current code page
- ]
+ test_cflags = []
+ add_project_arguments([ '-FImsvc_recommended_pragmas.h' ], language: 'c')
test_c_only_flags = []
elif cc.get_id() == 'gcc' or cc.get_id() == 'clang'
test_c_only_flags = [