[PATCH] Fix compilation with --enable-debug

Nick Hilliard nick at inex.ie
Sun Jul 12 15:39:37 UTC 2009


committed.

Nick

On 05/07/2009 03:13, Faidon Liambotis wrote:
> 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;


-- 
Network Ability Ltd. | Head of Operations      | Tel: +353 1 6169698
3 Westland Square    | INEX - Internet Neutral | Fax: +353 1 6041981
Dublin 2, Ireland    | Exchange Association    | Email: nick at inex.ie



More information about the irrtoolset mailing list