removed unused variable to suppress warning
[libfirm] / ir / be / bemodule.c
index c5442df..bb94be9 100644 (file)
@@ -52,6 +52,7 @@ void be_init_arch_ppc32(void);
 void be_init_arch_mips(void);
 void be_init_arch_arm(void);
 void be_init_arch_sta(void);
+void be_init_arch_TEMPLATE(void);
 void be_init_ilpsched(void);
 void be_init_copyilp(void);
 void be_init_javacoal(void);
@@ -106,11 +107,10 @@ void be_init_modules(void)
        be_init_ifg();
 
        be_init_arch_ia32();
-#if 0
        be_init_arch_ppc32();
        be_init_arch_mips();
        be_init_arch_arm();
-#endif
+       /* do NOT call be_init_arch_TEMPLATE() here, this is NOT a backend :-) */
 
 #ifdef WITH_ILP
        be_init_ilpsched();
@@ -152,6 +152,8 @@ static int set_opt_module(const char *name, lc_opt_type_t type, void *data,
        va_list                      args;
        const char                   *opt;
        const be_module_list_entry_t *module;
+       (void) type;
+       (void) name;
 
        va_start(args, length);
        opt = va_arg(args, const char*);
@@ -176,6 +178,9 @@ int dump_opt_module(char *buf, size_t buflen, const char *name,
 {
        module_opt_data_t            *moddata = data;
        const be_module_list_entry_t *module;
+       (void) name;
+       (void) type;
+       (void) length;
 
        for (module = *(moddata->list_head); module != NULL; module = module->next) {
                if (module->data == *(moddata->var)) {
@@ -197,6 +202,9 @@ int dump_opt_module_vals(char *buf, size_t buflen, const char *name,
        module_opt_data_t            *moddata = data;
        char                         *p       = buf;
        const be_module_list_entry_t *module;
+       (void) name;
+       (void) type;
+       (void) len;
 
        for (module = *(moddata->list_head); module != NULL; module = module->next) {
                size_t len = strlen(module->name);