[gjs/gnome-40: 17/30] meson.build: Ignore warning C5030 on Visual Studio




commit c60844181f84495a2e3b6a9f7643f98adcdc337e
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Thu Apr 29 16:04:14 2021 +0800

    meson.build: Ignore warning C5030 on Visual Studio
    
    We are now using C++17 attributes in place of the GLib macros as needed, so we
    can ignore warning C5030 that comes from attributes that are not recognized by
    the compiler, in particular the GCC-specific ones, since they simply not apply
    for Visual Studio builds.
    
    (cherry-picked from commit f80a945e)

 meson.build | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/meson.build b/meson.build
index 43929421..7d2b2e29 100644
--- a/meson.build
+++ b/meson.build
@@ -48,6 +48,7 @@ if cc.get_id() == 'msvc'
         '-wd4251',
         '-wd4291',
         '-wd4800',
+        '-wd5030',
     ]), language: ['cpp', 'c'])
 else
     # Ignore spurious compiler warnings for things that GLib and SpiderMonkey


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]