diff --git a/uppsrc/Core/LocalProcess.cpp b/uppsrc/Core/LocalProcess.cpp index 19de76d1b..e35867387 100644 --- a/uppsrc/Core/LocalProcess.cpp +++ b/uppsrc/Core/LocalProcess.cpp @@ -340,7 +340,7 @@ bool LocalProcess::DoStart(const char *command, const Vector *arg, bool #endif//DO_LLOG if(cd) - chdir(cd); + (void)chdir(cd); LLOG("running execve, app = " << app << ", #args = " << args.GetCount()); if(envptr) { diff --git a/uppsrc/ide/Install.cpp b/uppsrc/ide/Install.cpp index 1f7288b27..4ffbc1f0a 100644 --- a/uppsrc/ide/Install.cpp +++ b/uppsrc/ide/Install.cpp @@ -38,7 +38,7 @@ const char *gcc_bm = R"(BUILDER = "GCC"; COMPILER = ""; COMMON_OPTIONS = ""; -COMMON_CPP_OPTIONS = "-std=c++14 -Wall -Wno-parentheses"; +COMMON_CPP_OPTIONS = "-std=c++14 -Wall -Wno-parentheses -Wno-maybe-uninitialized -Wno-strict-overflow"; COMMON_C_OPTIONS = ""; COMMON_LINK = ""; COMMON_FLAGS = ""; diff --git a/uppsrc/ide/LayDes/layfile.cpp b/uppsrc/ide/LayDes/layfile.cpp index ec9fce814..3c8ebeb0b 100644 --- a/uppsrc/ide/LayDes/layfile.cpp +++ b/uppsrc/ide/LayDes/layfile.cpp @@ -9,7 +9,7 @@ ArrayMap& LayFileDataVar() void SerializeLayEditPos(Stream& s) { ArrayMap& filedata = LayFileDataVar(); - int dummy; + int dummy = 0; if(s.IsStoring()) { for(int i = 0; i < filedata.GetCount(); i++) { String fn = filedata.GetKey(i); diff --git a/uppsrc/ide/OutputMode.cpp b/uppsrc/ide/OutputMode.cpp index f7117b407..8f96dd40f 100644 --- a/uppsrc/ide/OutputMode.cpp +++ b/uppsrc/ide/OutputMode.cpp @@ -12,7 +12,7 @@ void TargetMode::Serialize(Stream& s) s / ver; s % target_override % target; if(ver < 3) { - int dummy; + int dummy = 0; s % dummy; } if(ver < 1) { @@ -23,7 +23,7 @@ void TargetMode::Serialize(Stream& s) s % version; s % def % package; if(ver == 2) { - int dummy; + int dummy = 0; s % dummy; } if(ver >= 3)