X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=main.c;h=76e400727f118499bf9f5b517d094747859101a9;hp=2078079ad6beb33c3a4629f2d61e24d3007c7a5c;hb=3f805fdde9c2cf83488c0cc5d42a7ce34409b337;hpb=6a8494f21bf13f9b68d101e1ea7f1b9e8af6d80f diff --git a/main.c b/main.c index 2078079..76e4007 100644 --- a/main.c +++ b/main.c @@ -256,7 +256,7 @@ static bool options_parse(int argc, char **argv) { case 'h': usage(); exit(0); - break; + /* break; never reached because of exit(0) */ case 'E': opts_pp_only = true; @@ -384,7 +384,6 @@ static bool options_parse(int argc, char **argv) { else { /* it's a QC filename */ - argitem item; item.filename = argv[0]; item.type = TYPE_QC; vec_push(items, item); @@ -459,6 +458,9 @@ int main(int argc, char **argv) { if (opts_standard == COMPILER_GMQCC) { operators = c_operators; operator_count = c_operator_count; + } else if (opts_standard == COMPILER_FTEQCC) { + operators = fte_operators; + operator_count = fte_operator_count; } else { operators = qcc_operators; operator_count = qcc_operator_count;