[PATCH] Fix compilation with --enable-debug

Faidon Liambotis paravoid at debian.org
Sun Jul 5 02:13:40 UTC 2009


Debug mode was broken with a newer GCC (v4.3).
Fix the error and an additional warning.
---
 src/irrutil/debug.hh |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/irrutil/debug.hh b/src/irrutil/debug.hh
index 54a1426..9a56942 100644
--- a/src/irrutil/debug.hh
+++ b/src/irrutil/debug.hh
@@ -81,7 +81,7 @@
 #define DBG_INFO            2 
 
 void Abort();
-void copy_constructor(char *p);
+void copy_constructor(const char *p);
 
 class dbgstream {
 public:
@@ -91,12 +91,12 @@ public:
       level = _level;
       return enabledp();
    }
-   void dbgstream::enable();
-   void dbgstream::disable();
-   void dbgstream::enable(int level);
-   void dbgstream::disable(int level);
-   int  dbgstream::enabledp();
-   int  dbgstream::enabledp(int level);
+   void enable();
+   void disable();
+   void enable(int level);
+   void disable(int level);
+   int  enabledp();
+   int  enabledp(int level);
 private:
    int level;
    int enabled;
-- 
1.5.6.5




More information about the irrtoolset mailing list