[rtems commit] genmcf548x/irq/irq.c: Fix incompatible pointer warning

Chris Johns chrisj at rtems.org
Wed Apr 26 00:22:31 UTC 2017


On 26/04/2017 10:19, Gedare Bloom wrote:
>>  static void_func get_exception_handler(rtems_vector_number vector)
>>  {
>> +  void **vbr;
>>    void_func *exception_table;
>>
>> -  m68k_get_vbr(exception_table);
>> +  m68k_get_vbr(vbr);
>> +
>> +  exception_table = (void_func *)vbr;
>>
> This looks strange. Can you achieve a similar effect with
> m68k_get_vbr( (void*)exception_table );
>

I think so. I prefer this.

Chris



More information about the devel mailing list