win,openssl: disable some warnings

This patch disables two (categories of) warnings:

  * deprecation of GetVersionExA
  * possible loss of data in implicit conversion of scalar types

These warnings don't seem to point out serious problems, and avoiding
them in openssl is somebody else's business.

PR-URL: https://github.com/iojs/io.js/pull/261
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
pull/261/head
Bert Belder 2015-01-08 13:43:22 +01:00
parent 7266b75779
commit e70562704c
1 changed files with 5 additions and 0 deletions

View File

@ -1108,6 +1108,11 @@
'WIN32_LEAN_AND_MEAN', 'WIN32_LEAN_AND_MEAN',
'OPENSSL_SYSNAME_WIN32', 'OPENSSL_SYSNAME_WIN32',
], ],
'msvs_disabled_warnings': [
4244, # conversion from 'signed type', possible loss of data
4267, # conversion from 'unsigned type', possible loss of data
4996, # 'GetVersionExA': was declared deprecated
],
}, { }, {
'defines': [ 'defines': [
# ENGINESDIR must be defined if OPENSSLDIR is. # ENGINESDIR must be defined if OPENSSLDIR is.