From 4dc0617cbcfb47b3301cf9b9a1127fa3b4fea732 Mon Sep 17 00:00:00 2001 From: samelian Date: Fri, 18 Feb 2011 15:51:10 +0000 Subject: [kdevelop] fixed gcc-4.5 incompatibilities git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1221512 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/cpp/debugger/stty.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'languages/cpp') diff --git a/languages/cpp/debugger/stty.cpp b/languages/cpp/debugger/stty.cpp index cdf4c81e..ac3cd4e1 100644 --- a/languages/cpp/debugger/stty.cpp +++ b/languages/cpp/debugger/stty.cpp @@ -325,7 +325,6 @@ bool STTY::findExternalTTY(const TQString &termApp) "exec<&-;exec>&-;" // close stdin and stdout "while :;do sleep 3600;done"); const char* scriptStr = script.latin1(); - const char* end = 0; if ( termApp == "konsole" ) { @@ -333,14 +332,14 @@ bool STTY::findExternalTTY(const TQString &termApp) "-caption", i18n("kdevelop: Debug application console").local8Bit().data(), "-e", "sh", "-c", scriptStr, - end); + NULL); } else { ::execlp( prog, prog, "-e", "sh", "-c", scriptStr, - end); + NULL); } // Should not get here, as above should always work -- cgit v1.2.3