mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
[input] Fix incorrect placement of pure attribute
Should be on the prototype, not definition (for public functions).
This commit is contained in:
parent
08bf3a6b8e
commit
6a9e5f4970
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ int IMT_CreateContext (const char *name);
|
|||
int IMT_GetContext (void) __attribute__ ((pure));
|
||||
void IMT_SetContext (int ctx);
|
||||
void IMT_SetContextCbuf (int ctx, struct cbuf_s *cbuf);
|
||||
imt_t *IMT_FindIMT (const char *name);
|
||||
imt_t *IMT_FindIMT (const char *name) __attribute__ ((pure));
|
||||
int IMT_CreateIMT (int context, const char *imt_name,
|
||||
const char *chain_imt_name);
|
||||
void IMT_BindAxis (imt_t *imt, int axis_num, in_axis_t *axis,
|
||||
|
|
|
@ -269,7 +269,7 @@ imt_find_imt (in_context_t *ctx, const char *name)
|
|||
return 0;
|
||||
}
|
||||
|
||||
imt_t * __attribute__ ((pure))
|
||||
imt_t *
|
||||
IMT_FindIMT (const char *name)
|
||||
{
|
||||
for (size_t i = 0; i < in_contexts.size; i++) {
|
||||
|
|
Loading…
Reference in a new issue