Skip to content

Commit 820cf7e

Browse files
dos1SiegeLord
authored andcommitted
Fix unused variable/function warnings
1 parent e429247 commit 820cf7e

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/opengl/extensions.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,6 @@ static uint32_t _al_ogl_version(void)
167167

168168

169169

170-
static bool _al_ogl_version_3_only(int flags)
171-
{
172-
const int mask = ALLEGRO_OPENGL_3_0 | ALLEGRO_OPENGL_FORWARD_COMPATIBLE;
173-
return (flags & mask) == mask;
174-
}
175-
176-
177-
178170
/* print_extensions:
179171
* Given a string containing extensions (i.e. a NULL terminated string where
180172
* each extension are separated by a space and which names do not contain any

src/sdl/sdl_keyboard.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ static ALLEGRO_KEYBOARD *sdl_get_keyboard(void)
379379

380380
static bool sdl_set_keyboard_leds(int leds)
381381
{
382+
(void)leds;
382383
return false;
383384
}
384385

src/sdl/sdl_system.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ALLEGRO_DEBUG_CHANNEL("SDL")
2121

2222
static ALLEGRO_SYSTEM_INTERFACE *vt;
2323

24+
#ifdef DEBUGMODE
2425
#define _E(x) if (type == x) return #x;
2526
static char const *event_name(int type)
2627
{
@@ -68,6 +69,7 @@ static char const *event_name(int type)
6869
return "(unknown)";
6970
}
7071
#undef _E
72+
#endif
7173

7274
static void sdl_heartbeat(void)
7375
{

0 commit comments

Comments
 (0)