invalid conversion from 'volatile void*' to 'void*' error on AIX 5.3
Loris Bennett
loris.bennett at fu-berlin.de
Fri Jul 31 01:43:38 CDT 2009
"John W. Eaton" <jwe at octave.org> 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
More information about the Help-octave
mailing list