Patch #955 2006-03-25 22:27

dermeister

Fix a compiler warning (uninitialized value)
Download
955-Fix_a_compiler.patch (432 bytes)
Category
 
Status
Accepted
Close date
2006-04-05 07:57
Assigned to
 
Index: src/plugins/compilergcc/compilergcc.cpp
===================================================================
--- src/plugins/compilergcc/compilergcc.cpp     (revision 2258)
+++ src/plugins/compilergcc/compilergcc.cpp     (working copy)
@@ -2191,7 +2191,7 @@
     m_RunAfterCompile = false;
     if (!IsProcessRunning())
         return 0;
-    wxKillError ret;
+    wxKillError ret = wxKILL_OK;
 
     m_CommandQueue.Clear();
dermeister 2006-03-25 22:28

This patch fixes the following warning:

compilergcc.cpp: In member function `virtual int CompilerGCC::KillProcess()':

compilergcc.cpp:2194: warning: 'ret' might be used uninitialized in this function