diff --git a/tools/qfcc/include/expr.h b/tools/qfcc/include/expr.h index 65c8ad290..b25481a8f 100644 --- a/tools/qfcc/include/expr.h +++ b/tools/qfcc/include/expr.h @@ -264,7 +264,7 @@ extern expr_t *local_expr; \return Pointer to the type description, or null if the expression type (expr_t::type) is inappropriate. */ -struct type_s *get_type (expr_t *e) __attribute__((pure)); +struct type_s *get_type (expr_t *e); /** Get the basic type code of the expression result. @@ -272,7 +272,7 @@ struct type_s *get_type (expr_t *e) __attribute__((pure)); \return Pointer to the type description, or ev_type_count if get_type() returns null. */ -etype_t extract_type (expr_t *e) __attribute__((pure)); +etype_t extract_type (expr_t *e); /** Create a new expression node. diff --git a/tools/qfcc/source/switch.c b/tools/qfcc/source/switch.c index 6c00279a0..967a7b73f 100644 --- a/tools/qfcc/source/switch.c +++ b/tools/qfcc/source/switch.c @@ -85,7 +85,7 @@ get_hash (const void *_cl, void *unused) return Hash_Buffer (&val->v, sizeof (val->v)) + val->lltype; } -static int __attribute__((pure)) +static int compare (const void *_cla, const void *_clb, void *unused) { case_label_t *cla = (case_label_t *) _cla;