Browse Source

Merge pull request #441 from pandell/ignore-winwarnings

Ignore Visual C++ 2013 compilation warnings
v1.x
Nathan Rajlich 11 years ago
parent
commit
5f6b64bda3
  1. 22
      binding.gyp
  2. 1
      src/CanvasGradient.h
  3. 1
      src/CanvasPattern.h
  4. 2
      src/FontFace.cc
  5. 1
      src/Image.h
  6. 1
      src/JPEGStream.h
  7. 2
      src/PixelArray.cc
  8. 4
      src/color.cc

22
binding.gyp

@ -45,7 +45,27 @@
'defines': [ 'defines': [
'snprintf=_snprintf', 'snprintf=_snprintf',
'_USE_MATH_DEFINES' # for M_PI '_USE_MATH_DEFINES' # for M_PI
] ],
'configurations': {
'Debug': {
'msvs_settings': {
'VCCLCompilerTool': {
'WarningLevel': 4,
'ExceptionHandling': 1,
'DisableSpecificWarnings': [4100, 4127, 4201, 4244, 4267, 4506, 4611, 4714]
}
}
},
'Release': {
'msvs_settings': {
'VCCLCompilerTool': {
'WarningLevel': 4,
'ExceptionHandling': 1,
'DisableSpecificWarnings': [4100, 4127, 4201, 4244, 4267, 4506, 4611, 4714]
}
}
}
}
}, { # 'OS!="win"' }, { # 'OS!="win"'
'libraries': [ 'libraries': [
'<!@(pkg-config pixman-1 --libs)', '<!@(pkg-config pixman-1 --libs)',

1
src/CanvasGradient.h

@ -8,7 +8,6 @@
#ifndef __NODE_GRADIENT_H__ #ifndef __NODE_GRADIENT_H__
#define __NODE_GRADIENT_H__ #define __NODE_GRADIENT_H__
#include <nan.h>
#include "Canvas.h" #include "Canvas.h"
class Gradient: public node::ObjectWrap { class Gradient: public node::ObjectWrap {

1
src/CanvasPattern.h

@ -8,7 +8,6 @@
#ifndef __NODE_PATTERN_H__ #ifndef __NODE_PATTERN_H__
#define __NODE_PATTERN_H__ #define __NODE_PATTERN_H__
#include <nan.h>
#include "Canvas.h" #include "Canvas.h"
class Pattern: public node::ObjectWrap { class Pattern: public node::ObjectWrap {

2
src/FontFace.cc

@ -6,8 +6,6 @@
#include "FontFace.h" #include "FontFace.h"
#include <nan.h>
Persistent<FunctionTemplate> FontFace::constructor; Persistent<FunctionTemplate> FontFace::constructor;
/* /*

1
src/Image.h

@ -8,7 +8,6 @@
#ifndef __NODE_IMAGE_H__ #ifndef __NODE_IMAGE_H__
#define __NODE_IMAGE_H__ #define __NODE_IMAGE_H__
#include <nan.h>
#include "Canvas.h" #include "Canvas.h"
#ifdef HAVE_JPEG #ifdef HAVE_JPEG

1
src/JPEGStream.h

@ -6,7 +6,6 @@
#ifndef __NODE_JPEG_STREAM_H__ #ifndef __NODE_JPEG_STREAM_H__
#define __NODE_JPEG_STREAM_H__ #define __NODE_JPEG_STREAM_H__
#include <nan.h>
#include "Canvas.h" #include "Canvas.h"
#include <jpeglib.h> #include <jpeglib.h>
#include <jerror.h> #include <jerror.h>

2
src/PixelArray.cc

@ -9,8 +9,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <nan.h>
Persistent<FunctionTemplate> PixelArray::constructor; Persistent<FunctionTemplate> PixelArray::constructor;
/* /*

4
src/color.cc

@ -350,10 +350,10 @@ rgba_from_rgba_string(const char *str, short *ok) {
if ('0' == *str) ++str; if ('0' == *str) ++str;
if ('.' == *str) { if ('.' == *str) {
++str; ++str;
float n = .1; float n = .1f;
while (*str >= '0' && *str <= '9') { while (*str >= '0' && *str <= '9') {
a += (*str++ - '0') * n; a += (*str++ - '0') * n;
n *= .1; n *= .1f;
} }
} }
} }

Loading…
Cancel
Save