mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Cleanup: Remove warning overrides and fix two more warnings.
This commit is contained in:
@@ -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()
|
||||
|
||||
#
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -1049,7 +1049,7 @@ DValue* CallExp::toElem(IRState* p)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static char *ops[] = {
|
||||
static const char *ops[] = {
|
||||
"xchg",
|
||||
"add",
|
||||
"sub",
|
||||
|
||||
Reference in New Issue
Block a user