-Wno-format-nonliteral \
-Wno-disabled-macro-expansion \
-Wno-conversion \
- -Wno-missing-prototypes
+ -Wno-missing-prototypes \
+ -Wno-float-equal \
+ -Wno-cast-align
endif
ifeq ($(track), no)
CFLAGS += -DNOTRACK
}
#define codegen_output_type(a,o) (_ast_codegen_output_type(&((a)->expression),(o)))
-#define codegen_output_type_expr(a,o) (_ast_codegen_output_type(a,(o)))
bool ast_value_codegen(ast_value *self, ast_function *func, bool lvalue, ir_value **out)
{
#define QCVM_PROFILE 0
#define QCVM_TRACE 0
# include __FILE__
- break;
}
case (VMXF_TRACE):
{
#define QCVM_PROFILE 0
#define QCVM_TRACE 1
# include __FILE__
- break;
}
case (VMXF_PROFILE):
{
#define QCVM_PROFILE 1
#define QCVM_TRACE 0
# include __FILE__
- break;
}
case (VMXF_TRACE|VMXF_PROFILE):
{
#define QCVM_PROFILE 1
#define QCVM_TRACE 1
# include __FILE__
- break;
}
};
/* show defaults (like pathscale) */
if (!strcmp(argv[0]+1, "show-defaults")) {
- size_t itr;
- char buffer[1024];
for (itr = 0; itr < COUNT_FLAGS; ++itr) {
if (!OPTS_FLAG(itr))
continue;
#include "gmqcc.h"
#include "lexer.h"
-#define PARSER_HT_FIELDS 0
-#define PARSER_HT_GLOBALS 1
/* beginning of locals */
#define PARSER_HT_LOCALS 2
}
else if (parser->tok == '{' || parser->tok == '[')
{
- size_t i;
if (localblock) {
parseerror(parser, "cannot declare functions within functions");
break;
goto task_popen_error_3;
}
+ /*
+ * clang is stupid, it doesn't understand that yes, this code
+ * is actually reachable.
+ */
+# ifdef __clang__
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wunreachable-code"
+# endif
if (argv)
vec_free(argv);
+
+# ifdef __clang__
+# pragma clang diagnostic pop
+# endif
+
return data->handles;
task_popen_error_3: close(errhandle[0]), close(errhandle[1]);