From e8e2bf7efec21e614d1faf510f34f880955d5939 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 11 Feb 2025 12:49:52 +0900 Subject: [PATCH] [qfcc] Fix some forwarded enum issues Forwarded enums need the backing type specified (which makes sense). --- tools/qfcc/include/function.h | 2 +- tools/qfcc/include/struct.h | 2 +- tools/qfcc/include/symtab.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/qfcc/include/function.h b/tools/qfcc/include/function.h index 30873ee4e..7d22d7756 100644 --- a/tools/qfcc/include/function.h +++ b/tools/qfcc/include/function.h @@ -213,7 +213,7 @@ const type_t *parse_params (const type_t *return_type, param_t *params); param_t *check_params (param_t *params); -enum storage_class_e; +enum storage_class_e : unsigned; struct defspace_s; int value_too_large (const type_t *val_type) __attribute__((pure)); function_t *make_function (symbol_t *sym, const char *nice_name, diff --git a/tools/qfcc/include/struct.h b/tools/qfcc/include/struct.h index a4d02b9a4..d4579d84a 100644 --- a/tools/qfcc/include/struct.h +++ b/tools/qfcc/include/struct.h @@ -32,7 +32,7 @@ #define __struct_h struct def_s; -enum storage_class_e; +enum storage_class_e : unsigned; struct symbol_s; struct symtab_s; typedef struct type_s type_t; diff --git a/tools/qfcc/include/symtab.h b/tools/qfcc/include/symtab.h index 612d64448..df143ea4f 100644 --- a/tools/qfcc/include/symtab.h +++ b/tools/qfcc/include/symtab.h @@ -34,7 +34,7 @@ #include "expr.h" struct defspace_s; -enum storage_class_e; +enum storage_class_e : unsigned; /** \defgroup qfcc_symtab Symbol Table Management \ingroup qfcc