meson: Apply msvc warning level to cpp too
authorSeungha Yang <seungha.yang@navercorp.com>
Sun, 1 Mar 2020 10:58:35 +0000 (19:58 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Sun, 1 Mar 2020 10:58:35 +0000 (19:58 +0900)
We have c++ code as well.

meson.build

index 5a5f6d2..3a6a8f0 100644 (file)
@@ -51,7 +51,7 @@ if not meson.is_subproject() and cc.get_id() == 'msvc'
       '/w14101', # 'identifier' : unreferenced local variable
       '/w14189', # 'identifier' : local variable is initialized but not referenced
       cc.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
-      language: 'c')
+      language: ['c', 'cpp'])
 endif
 
 # Ordered list of subprojects (dict has no ordering guarantees)