help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: invalid conversion from 'volatile void*' to 'void*' error on AIX 5.3


From: Loris Bennett
Subject: Re: invalid conversion from 'volatile void*' to 'void*' error on AIX 5.3
Date: Fri, 31 Jul 2009 08:43:38 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

"John W. Eaton" <address@hidden> writes:

> On 30-Jul-2009, Loris Bennett wrote:
>
> | Hi,
> | 
> | Compiling Octave 3.2.2 and GCC 4.3.3 on AIX 5.3 I am getting the
> | errors
> | 
> |      pt-eval.cc: In function 'void
> |      do_unwind_protect_cleanup_code(void*)':
> |    
> |      pt-eval.cc:918: error: invalid conversion from 'volatile void*'
> |      to 'void*'
> | 
> |      pt-eval.cc:918: error: initializing argument 2 of 'static void
> |      unwind_protect::add(void (*)(void*), void*)'
> | 
> | Any ideas what could be causing this?
>
> Does changing line 918 of pt-eval.cc from
>
>   unwind_protect::add (restore_interrupt_state,
>   &saved_octave_interrupt_state);
>
> to
>
>   unwind_protect::add (restore_interrupt_state, (void
>   *)(&saved_octave_interrupt_state));
>
> avoid the problem for you?
>
> jwe

Yes, this solves the problem. I now just get a warning

     pt-eval.cc: In function 'void do_unwind_protect_cleanup_code(void*)':
     pt-eval.cc:919: warning: use of old-style cast

Thanks,

Loris

-- 
Dr. Loris Bennett
Computer Centre
Freie Universität Berlin
Berlin, Germany



reply via email to

[Prev in Thread] Current Thread [Next in Thread]