|
274 | 274 | 'BufferSecurityCheck': 'true',
|
275 | 275 | 'ExceptionHandling': 0, # /EHsc
|
276 | 276 | 'SuppressStartupBanner': 'true',
|
277 |
| - # Disable warnings: |
278 |
| - # - "C4251: class needs to have dll-interface" |
279 |
| - # - "C4275: non-DLL-interface used as base for DLL-interface" |
280 |
| - # Over 10k of these warnings are generated when compiling node, |
281 |
| - # originating from v8.h. Most of them are false positives. |
282 |
| - # See also: https://github.com/nodejs/node/pull/15570 |
283 |
| - # TODO: re-enable when Visual Studio fixes these upstream. |
284 |
| - # |
285 |
| - # - "C4267: conversion from 'size_t' to 'int'" |
286 |
| - # Many any originate from our dependencies, and their sheer number |
287 |
| - # drowns out other, more legitimate warnings. |
288 |
| - 'DisableSpecificWarnings': ['4251', '4275', '4267'], |
289 | 277 | 'WarnAsError': 'false',
|
290 | 278 | },
|
291 | 279 | 'VCLinkerTool': {
|
|
316 | 304 | 'SuppressStartupBanner': 'true',
|
317 | 305 | },
|
318 | 306 | },
|
319 |
| - 'msvs_disabled_warnings': [4351, 4355, 4800], |
| 307 | + # Disable warnings: |
| 308 | + # - "C4251: class needs to have dll-interface" |
| 309 | + # - "C4275: non-DLL-interface used as base for DLL-interface" |
| 310 | + # Over 10k of these warnings are generated when compiling node, |
| 311 | + # originating from v8.h. Most of them are false positives. |
| 312 | + # See also: https://github.com/nodejs/node/pull/15570 |
| 313 | + # TODO: re-enable when Visual Studio fixes these upstream. |
| 314 | + # |
| 315 | + # - "C4267: conversion from 'size_t' to 'int'" |
| 316 | + # Many any originate from our dependencies, and their sheer number |
| 317 | + # drowns out other, more legitimate warnings. |
| 318 | + # - "C4244: conversion from 'type1' to 'type2', possible loss of data" |
| 319 | + # Ususaly safe. Disable for `dep`, enable for `src` |
| 320 | + 'msvs_disabled_warnings': [4351, 4355, 4800, 4251, 4275, 4244, 4267], |
320 | 321 | 'conditions': [
|
321 | 322 | ['asan == 1 and OS != "mac"', {
|
322 | 323 | 'cflags+': [
|
|
0 commit comments