Menu ▾ ▴

#122 Silence spurious warnings when compiling with VC8

closed-fixed
5
2007-02-24
2007-02-24
Koby Kahane
No

When NSIS is compiled with Visual C++ 2005, the build output is littered with two types of warnings:

- Use of functions that have a secure version and are supposedly deprecated. (e.g., fopen vs. fopen_s)
- Use of POSIX functions which are not a part of the ISO C++ standard by unqualified name instead of with a leading underscore. (e.g., strdup vs. _strdup)

The attached patch modifies the build environment when Visual C++ 2005 is used during compilation to prevent these warnings from being emitted. _CRT_SECURE_NO_WARNINGS is defined to disable the security warnings and _CRT_NONSTDC_NO_WARNINGS is defined to disable the POSIX warnings.

Discussion

  • Koby Kahane

    Koby Kahane - 2007-02-24

    patch for SCons/Config/ms

     
  • Amir Szekely

    Amir Szekely - 2007-02-24
    • labels: --> Build System
    • assigned_to: nobody --> kichik
    • status: open --> closed-fixed
     
  • Amir Szekely

    Amir Szekely - 2007-02-24

    Logged In: YES
    user_id=584402
    Originator: NO

    Thanks.

     

Log in to post a comment.