More missing config.h
[libfirm] / ir / be / beraextern.c
index b9a2483..fa44fb3 100644 (file)
@@ -403,7 +403,7 @@ static void dump_affinities_walker(ir_node *irn, void *env) {
        vi1 = be_get_var_info(irn);
 
        /* copies have affinities */
-       if (arch_irn_classify(raenv->aenv, irn) == arch_irn_class_copy) {
+       if (arch_irn_class_is(raenv->aenv, irn, copy)) {
                ir_node *other = be_get_Copy_op(irn);
 
                if (! arch_irn_is(raenv->aenv, other, ignore)) {
@@ -787,12 +787,12 @@ static be_ra_timer_t *be_ra_extern_main(const be_irg_t *bi) {
 
 
 static const lc_opt_enum_func_ptr_items_t ssa_destr_items[] = {
-       { "simple",     (int (*)()) be_ssa_destr_simple }, /* TODO make (void*) casts nicer */
+       { "simple",     (int (*)(void)) be_ssa_destr_simple }, /* TODO make (void*) casts nicer */
        { NULL,      NULL }
 };
 
 static lc_opt_enum_func_ptr_var_t ssa_destr_var = {
-        (int (**)()) &ssa_destr, ssa_destr_items
+        (int (**)(void)) &ssa_destr, ssa_destr_items
 };
 
 static const lc_opt_table_entry_t be_ra_extern_options[] = {