|
264 | 264 | 'BufferSecurityCheck': 'true',
|
265 | 265 | 'ExceptionHandling': 0, # /EHsc
|
266 | 266 | 'SuppressStartupBanner': 'true',
|
267 |
| - # Disable warnings: |
268 |
| - # - "C4251: class needs to have dll-interface" |
269 |
| - # - "C4275: non-DLL-interface used as base for DLL-interface" |
270 |
| - # Over 10k of these warnings are generated when compiling node, |
271 |
| - # originating from v8.h. Most of them are false positives. |
272 |
| - # See also: https://github.com/nodejs/node/pull/15570 |
273 |
| - # TODO: re-enable when Visual Studio fixes these upstream. |
274 |
| - # |
275 |
| - # - "C4267: conversion from 'size_t' to 'int'" |
276 |
| - # Many any originate from our dependencies, and their sheer number |
277 |
| - # drowns out other, more legitimate warnings. |
278 |
| - 'DisableSpecificWarnings': ['4251', '4275', '4267'], |
279 | 267 | 'WarnAsError': 'false',
|
280 | 268 | },
|
281 | 269 | 'VCLinkerTool': {
|
|
306 | 294 | 'SuppressStartupBanner': 'true',
|
307 | 295 | },
|
308 | 296 | },
|
309 |
| - 'msvs_disabled_warnings': [4351, 4355, 4800], |
| 297 | + # Disable warnings: |
| 298 | + # - "C4251: class needs to have dll-interface" |
| 299 | + # - "C4275: non-DLL-interface used as base for DLL-interface" |
| 300 | + # Over 10k of these warnings are generated when compiling node, |
| 301 | + # originating from v8.h. Most of them are false positives. |
| 302 | + # See also: https://github.com/nodejs/node/pull/15570 |
| 303 | + # TODO: re-enable when Visual Studio fixes these upstream. |
| 304 | + # |
| 305 | + # - "C4267: conversion from 'size_t' to 'int'" |
| 306 | + # Many any originate from our dependencies, and their sheer number |
| 307 | + # drowns out other, more legitimate warnings. |
| 308 | + # - "C4244: conversion from 'type1' to 'type2', possible loss of data" |
| 309 | + # Ususaly safe. Disable for `dep`, enable for `src` |
| 310 | + 'msvs_disabled_warnings': [4351, 4355, 4800, 4251, 4275, 4244, 4267], |
310 | 311 | 'conditions': [
|
311 | 312 | ['asan == 1 and OS != "mac"', {
|
312 | 313 | 'cflags+': [
|
|
0 commit comments