[input] Fix incorrect placement of pure attribute

Should be on the prototype, not definition (for public functions).
This commit is contained in:
Bill Currie 2021-11-14 10:10:39 +09:00
parent 08bf3a6b8e
commit 6a9e5f4970
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ int IMT_CreateContext (const char *name);
int IMT_GetContext (void) __attribute__ ((pure)); int IMT_GetContext (void) __attribute__ ((pure));
void IMT_SetContext (int ctx); void IMT_SetContext (int ctx);
void IMT_SetContextCbuf (int ctx, struct cbuf_s *cbuf); 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, int IMT_CreateIMT (int context, const char *imt_name,
const char *chain_imt_name); const char *chain_imt_name);
void IMT_BindAxis (imt_t *imt, int axis_num, in_axis_t *axis, void IMT_BindAxis (imt_t *imt, int axis_num, in_axis_t *axis,

View file

@ -269,7 +269,7 @@ imt_find_imt (in_context_t *ctx, const char *name)
return 0; return 0;
} }
imt_t * __attribute__ ((pure)) imt_t *
IMT_FindIMT (const char *name) IMT_FindIMT (const char *name)
{ {
for (size_t i = 0; i < in_contexts.size; i++) { for (size_t i = 0; i < in_contexts.size; i++) {