Fix compiler warnings.
Signed-off-by: yzrh <yzrh@noema.org>
This commit is contained in:
parent
471a8b42d2
commit
09cfe6cee9
2 changed files with 15 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019-2022, yzrh <yzrh@noema.org>
|
# Copyright (c) 2019-2023, yzrh <yzrh@noema.org>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
@ -18,7 +18,7 @@ obj = ${src:.c=.o}
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
|
||||||
CFLAGS = -O2 -pipe -flto -Wall -Wextra -Wno-unused-result -Wno-unused-parameter
|
CFLAGS = -O2 -pipe -flto -Wall -Wextra -Wno-unused-parameter
|
||||||
LDFLAGS = -Wl,-O2 -lpthread -lSDL2 -lSDL2_ttf
|
LDFLAGS = -Wl,-O2 -lpthread -lSDL2 -lSDL2_ttf
|
||||||
|
|
||||||
.ifdef SOUND
|
.ifdef SOUND
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2019-2022, yzrh <yzrh@noema.org>
|
* Copyright (c) 2019-2023, yzrh <yzrh@noema.org>
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -108,19 +108,22 @@ static void*
|
||||||
handler_rendering(void *args)
|
handler_rendering(void *args)
|
||||||
{
|
{
|
||||||
const SDL_Color fg = {
|
const SDL_Color fg = {
|
||||||
COLOUR_FOREGROUND_R,
|
.r = COLOUR_FOREGROUND_R,
|
||||||
COLOUR_FOREGROUND_G,
|
.g = COLOUR_FOREGROUND_G,
|
||||||
COLOUR_FOREGROUND_B
|
.b = COLOUR_FOREGROUND_B,
|
||||||
|
.a = 255
|
||||||
};
|
};
|
||||||
const SDL_Color bg = {
|
const SDL_Color bg = {
|
||||||
COLOUR_BACKGROUND_R,
|
.r = COLOUR_BACKGROUND_R,
|
||||||
COLOUR_BACKGROUND_G,
|
.g = COLOUR_BACKGROUND_G,
|
||||||
COLOUR_BACKGROUND_B
|
.b = COLOUR_BACKGROUND_B,
|
||||||
|
.a = 255
|
||||||
};
|
};
|
||||||
const SDL_Color bg_s = {
|
const SDL_Color bg_s = {
|
||||||
COLOUR_BACKGROUND_SHADE_R,
|
.r = COLOUR_BACKGROUND_SHADE_R,
|
||||||
COLOUR_BACKGROUND_SHADE_G,
|
.g = COLOUR_BACKGROUND_SHADE_G,
|
||||||
COLOUR_BACKGROUND_SHADE_B
|
.b = COLOUR_BACKGROUND_SHADE_B,
|
||||||
|
.a = 255
|
||||||
};
|
};
|
||||||
|
|
||||||
char result_str[23];
|
char result_str[23];
|
||||||
|
|
Loading…
Reference in a new issue