0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/quakeforge synced 2025-03-21 18:01:15 +00:00

[qfcc] Fix some const attribute warnings

Try to anticipate gcc's warnings and it one-ups you :P
This commit is contained in:
Bill Currie 2020-04-01 21:17:13 +09:00
parent 41184bd97d
commit a09eabeb4d
2 changed files with 7 additions and 6 deletions
tools/qfcc
include
source

View file

@ -119,10 +119,10 @@ int is_id (const struct type_s *type) __attribute__((pure));
int is_class (const struct type_s *type) __attribute__((pure));
int is_Class (const struct type_s *type) __attribute__((const));
int is_classptr (const struct type_s *type) __attribute__((pure));
int is_SEL (const struct type_s *type) __attribute__((pure));
int is_object (const struct type_s *type) __attribute__((pure));
int is_method (const struct type_s *type) __attribute__((pure));
int is_method_description (const struct type_s *type) __attribute__((pure));
int is_SEL (const struct type_s *type) __attribute__((const));
int is_object (const struct type_s *type) __attribute__((const));
int is_method (const struct type_s *type) __attribute__((const));
int is_method_description (const struct type_s *type) __attribute__((const));
int obj_types_assignable (const struct type_s *dst, const struct type_s *src);
class_t *extract_class (class_type_t *class_type) __attribute__((pure));

View file

@ -53,5 +53,6 @@ int compare_protocols (protocollist_t *protos1, protocollist_t *protos2){return
void dump_dot (const char *stage, void *data,
void (*dump_func) (void *data, const char *fname)){}
void dump_dot_type (void *_t, const char *filename){}
const char *strip_path(const char *p) { return p;}
const char *file_basename(const char *p, int keepdot) { return p;}
char *fubar;
const char *strip_path(const char *p) { return fubar;}
const char *file_basename(const char *p, int keepdot) { return fubar;}