workaround for void* conversion of funcptr
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 28 Feb 2006 09:12:17 +0000 (09:12 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 28 Feb 2006 09:12:17 +0000 (09:12 +0000)
ir/be/beraextern.c

index ceeecd7..3646a86 100644 (file)
@@ -900,9 +900,10 @@ static void be_ra_extern_main(const be_irg_t *bi) {
 
 #ifdef WITH_LIBCORE
 
+
 static const lc_opt_enum_const_ptr_items_t ssa_destr_items[] = {
-       { "simple",    ssa_destr_simple },
-       { "rastello",  ssa_destr_rastello },
+       { "simple",    (void*)ssa_destr_simple }, /* TODO make (void*) casts nicer */
+       { "rastello",  (void*)ssa_destr_rastello },
        { NULL,      NULL }
 };