Changeset 14671


Ignore:
Timestamp:
Jan 9, 2016, 6:24:43 PM (6 years ago)
Author:
mikedld
Message:

Disable format warnings when building with MinGW

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r14647 r14671  
    427427        -Wcast-align
    428428        -Wfloat-equal
    429         -Wformat-security
    430429        -Wmissing-format-attribute
    431430        -Wpointer-arith
     
    439438            -Wextra
    440439            -Winit-self)
     440    endif()
     441
     442    if(MINGW)
     443        # Disable excessive warnings since we're using __USE_MINGW_ANSI_STDIO
     444        # Hopefully, any potential issues will be spotted on other platforms
     445        list(APPEND NEEDED_COMPILER_FLAGS -Wno-format)
     446    else()
     447        list(APPEND NEEDED_COMPILER_FLAGS -Wformat-security)
    441448    endif()
    442449
Note: See TracChangeset for help on using the changeset viewer.