diff options
author | Bruce Dawson <brucedawson@google.com> | 2015-01-06 13:12:09 -0800 |
---|---|---|
committer | Bruce Dawson <brucedawson@google.com> | 2015-01-06 13:12:09 -0800 |
commit | d12a4f465a0bcc8b233079ccd54bf7882f3532d5 (patch) | |
tree | e8af22a574ddc9c4790f4d062b809999d5840f42 /pdfium.gyp | |
parent | 256ef88a26cff56fc7c23119d2d9e1b41468bd1a (diff) | |
download | pdfium-d12a4f465a0bcc8b233079ccd54bf7882f3532d5.tar.xz |
Resolve all but two VC++ build warnings in pdfium.
pdfium builds on Win32 have about 85 warnings (250 in the XFA
branch, totaling over 480 lines!), mostly from four lines in
a header file and a warning that should be disabled. This
change resolves all but two of them and turns on
warning-as-errors. Bugs have been filed for the two
remaining warnings:
https://code.google.com/p/pdfium/issues/detail?id=100
the 64-bit warnings:
https://code.google.com/p/pdfium/issues/detail?id=101
and the Linux warnings:
https://code.google.com/p/pdfium/issues/detail?id=102
The fix to the double->float truncation bugs will also
improve code-generation.
R=bo_xu@foxitsoftware.com, scottmg@chromium.org, tsepez@chromium.org
Review URL: https://codereview.chromium.org/792953005
Diffstat (limited to 'pdfium.gyp')
-rw-r--r-- | pdfium.gyp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pdfium.gyp b/pdfium.gyp index 0ac04715e4..f50005d10f 100644 --- a/pdfium.gyp +++ b/pdfium.gyp @@ -308,6 +308,13 @@ 'include_dirs': [ ], 'ldflags': [ '-L<(PRODUCT_DIR)',], + 'msvs_settings': { + 'VCCLCompilerTool': { + # Unresolved warnings in fx_codec_jpx_opj.cpp + # https://code.google.com/p/pdfium/issues/detail?id=100 + 'WarnAsError': 'false', + }, + }, 'sources': [ 'core/include/fxcodec/fx_codec.h', 'core/include/fxcodec/fx_codec_def.h', |