mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-14 13:21:43 +00:00
[qfcc] Fix some gcc purity checks
This commit is contained in:
parent
2f941ff9dd
commit
354a161722
1 changed files with 5 additions and 5 deletions
|
@ -74,7 +74,7 @@ typedef struct {
|
|||
|
||||
static type_func_t type_funcs[];
|
||||
|
||||
static bool
|
||||
static bool __attribute__((pure))
|
||||
check_type (const expr_t *arg)
|
||||
{
|
||||
if (arg->type == ex_symbol && arg->symbol->sy_type == sy_type_param) {
|
||||
|
@ -130,7 +130,7 @@ check_int (const expr_t *arg)
|
|||
return true;
|
||||
}
|
||||
|
||||
static const char *
|
||||
static const char * __attribute__((pure))
|
||||
single_type (int arg_count, const expr_t **args)
|
||||
{
|
||||
if (arg_count < 1) {
|
||||
|
@ -145,7 +145,7 @@ single_type (int arg_count, const expr_t **args)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
static const char *
|
||||
static const char * __attribute__((pure))
|
||||
single_type_property (int arg_count, const expr_t **args)
|
||||
{
|
||||
if (arg_count < 1) {
|
||||
|
@ -163,7 +163,7 @@ single_type_property (int arg_count, const expr_t **args)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
static const char *
|
||||
static const char * __attribute__((pure))
|
||||
single_type_opt_int (int arg_count, const expr_t **args)
|
||||
{
|
||||
if (arg_count < 1) {
|
||||
|
@ -181,7 +181,7 @@ single_type_opt_int (int arg_count, const expr_t **args)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
static const char *
|
||||
static const char * __attribute__((pure))
|
||||
single_type_opt_int_pair (int arg_count, const expr_t **args)
|
||||
{
|
||||
if (arg_count < 1) {
|
||||
|
|
Loading…
Reference in a new issue