mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-01 09:02:08 +00:00
Fix some optimization warnings
This commit is contained in:
parent
6da8a2622f
commit
f77b4199c4
4 changed files with 4 additions and 4 deletions
|
@ -117,6 +117,6 @@ int IE_Send_Event (const IE_event_t *event);
|
||||||
int IE_Add_Handler (ie_handler_t *event_handler, void *data);
|
int IE_Add_Handler (ie_handler_t *event_handler, void *data);
|
||||||
void IE_Remove_Handler (int handle);
|
void IE_Remove_Handler (int handle);
|
||||||
void IE_Set_Focus (int handle);
|
void IE_Set_Focus (int handle);
|
||||||
int IE_Get_Focus (void);
|
int IE_Get_Focus (void) __attribute__ ((pure));
|
||||||
|
|
||||||
#endif//__QF_in_event_h
|
#endif//__QF_in_event_h
|
||||||
|
|
|
@ -59,7 +59,7 @@ typedef struct in_context_s {
|
||||||
int IMT_GetAxisBlock (int num_axes);
|
int IMT_GetAxisBlock (int num_axes);
|
||||||
int IMT_GetButtonBlock (int num_buttons);
|
int IMT_GetButtonBlock (int num_buttons);
|
||||||
int IMT_CreateContext (const char *name);
|
int IMT_CreateContext (const char *name);
|
||||||
int IMT_GetContext (void);
|
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);
|
||||||
|
|
|
@ -648,7 +648,7 @@ draw_notify (view_t *view)
|
||||||
static void
|
static void
|
||||||
setup_console (void)
|
setup_console (void)
|
||||||
{
|
{
|
||||||
float lines;
|
float lines = 0;
|
||||||
|
|
||||||
switch (con_state) {
|
switch (con_state) {
|
||||||
case con_inactive:
|
case con_inactive:
|
||||||
|
|
|
@ -185,7 +185,7 @@ IMT_CreateContext (const char *name)
|
||||||
return ctx - in_contexts.a;
|
return ctx - in_contexts.a;
|
||||||
}
|
}
|
||||||
|
|
||||||
static in_context_t *
|
static in_context_t * __attribute__ ((pure))
|
||||||
imt_find_context (const char *name)
|
imt_find_context (const char *name)
|
||||||
{
|
{
|
||||||
for (size_t i = 0; i < in_contexts.size; i++) {
|
for (size_t i = 0; i < in_contexts.size; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue