[libgit2-glib] meson: Use the recommended pragmas instead of hardcoding them
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] meson: Use the recommended pragmas instead of hardcoding them
- Date: Thu, 30 Nov 2017 19:22:18 +0000 (UTC)
commit 6fc8447fc67039415e3080af7bd75d506191af14
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Thu Nov 30 20:21:40 2017 +0100
meson: Use the recommended pragmas instead of hardcoding them
meson.build | 29 ++++-------------------------
1 files changed, 4 insertions(+), 25 deletions(-)
---
diff --git a/meson.build b/meson.build
index 1b8a347..cf099c0 100644
--- a/meson.build
+++ b/meson.build
@@ -55,31 +55,10 @@ conf.set('VERSION', libgit2_glib_version)
# Compiler flags
if cc.get_id() == 'msvc'
- # Make MSVC more pedantic, this is a recommended pragma list
- # from _Win32_Programming_ by Rector and Newcomer. Taken from
- # glib's msvc_recommended_pragmas.h--please see that file for
- # the meaning of the warning codes used here
- test_cflags = [
- '-W3',
- '-we4002',
- '-we4003',
- '-w14010',
- '-we4013',
- '-w14016',
- '-we4020',
- '-we4021',
- '-we4027',
- '-we4029',
- '-we4033',
- '-we4035',
- '-we4045',
- '-we4047',
- '-we4049',
- '-we4053',
- '-we4071',
- '-we4150',
- '-we4819'
- ]
+ # Compiler options taken from msvc_recommended_pragmas.h
+ # in GLib, based on _Win32_Programming_ by Rector and Newcomer
+ test_cflags = []
+ add_project_arguments('-FImsvc_recommended_pragmas.h', language: 'c')
else
test_cflags = [
'-ffast-math',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]