Improved flags in gui.pro:

- shlwapi.lib is not necessary if dynamic linking is used
- Do not define _CRT_SECURE_NO_WARNINGS explicitly, it gets defined anyway.
This commit is contained in:
PKEuS 2016-01-31 10:10:26 +01:00
parent 4d01af3fe1
commit c31f7c7a48
2 changed files with 5 additions and 3 deletions

View File

@ -152,11 +152,13 @@ SOURCES += aboutdialog.cpp \
libraryeditargdialog.cpp libraryeditargdialog.cpp
win32 { win32 {
DEFINES += _CRT_SECURE_NO_WARNINGS
RC_FILE = cppcheck-gui.rc RC_FILE = cppcheck-gui.rc
HEADERS += ../lib/version.h HEADERS += ../lib/version.h
contains(LINKCORE, [yY][eE][sS]) {
} else {
LIBS += -lshlwapi LIBS += -lshlwapi
} }
}
contains(QMAKE_CC, gcc) { contains(QMAKE_CC, gcc) {
QMAKE_CXXFLAGS += -std=c++0x -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare QMAKE_CXXFLAGS += -std=c++0x -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare

View File

@ -192,9 +192,9 @@ public:
std::string stringify() const; std::string stringify() const;
unsigned int line; unsigned int line;
private: private:
std::string _file; std::string _file;
}; };
ErrorMessage(const std::list<FileLocation> &callStack, Severity::SeverityType severity, const std::string &msg, const std::string &id, bool inconclusive); ErrorMessage(const std::list<FileLocation> &callStack, Severity::SeverityType severity, const std::string &msg, const std::string &id, bool inconclusive);