Cleanup: Remove warning overrides and fix two more warnings.

This commit is contained in:
David Nadlinger
2012-12-20 00:30:34 +01:00
parent 0cd78dd579
commit fca550e534
3 changed files with 3 additions and 3 deletions

View File

@@ -267,7 +267,7 @@ endif()
if(MSVC)
set(EXTRA_CXXFLAGS "/W0 /wd4996 /GF /GR- /RTC1")
else()
set(EXTRA_CXXFLAGS "-Wno-deprecated -Wno-write-strings -fexceptions")
set(EXTRA_CXXFLAGS "-fexceptions")
endif()
#

View File

@@ -108,7 +108,7 @@ void printVersion() {
}
// Helper function to handle -d-debug=* and -d-version=*
static void processVersions(std::vector<std::string>& list, char* type,
static void processVersions(std::vector<std::string>& list, const char* type,
void (*setLevel)(unsigned), void (*addIdent)(const char*)) {
typedef std::vector<std::string>::iterator It;

View File

@@ -1049,7 +1049,7 @@ DValue* CallExp::toElem(IRState* p)
return NULL;
}
static char *ops[] = {
static const char *ops[] = {
"xchg",
"add",
"sub",