mirror of
https://github.com/wiiu-env/NotificationModule.git
synced 2026-05-10 06:01:06 -05:00
Fix compiler warnings
This commit is contained in:
parent
3276014468
commit
aee2ce8806
2
Makefile
2
Makefile
|
|
@ -30,7 +30,7 @@ INCLUDES := src
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# options for code generation
|
# options for code generation
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
CFLAGS := -Wall -Wextra -O2 -ffunction-sections\
|
CFLAGS := -Wall -Wextra -Werror -O2 -ffunction-sections\
|
||||||
$(MACHDEP)
|
$(MACHDEP)
|
||||||
|
|
||||||
CFLAGS += $(INCLUDE) -D__WIIU__ -D__WUT__
|
CFLAGS += $(INCLUDE) -D__WIIU__ -D__WUT__
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ DECL_FUNCTION(void, GX2SetContextState, GX2ContextState *curContext) {
|
||||||
DECL_FUNCTION(void, GX2SetupContextStateEx, GX2ContextState *state, BOOL unk1) {
|
DECL_FUNCTION(void, GX2SetupContextStateEx, GX2ContextState *state, BOOL unk1) {
|
||||||
real_GX2SetupContextStateEx(state, unk1);
|
real_GX2SetupContextStateEx(state, unk1);
|
||||||
gOriginalContextState = state;
|
gOriginalContextState = state;
|
||||||
DEBUG_FUNCTION_LINE_VERBOSE("gOriginalContextState = %08X", state);
|
DEBUG_FUNCTION_LINE_VERBOSE("gOriginalContextState = %p", state);
|
||||||
}
|
}
|
||||||
|
|
||||||
DECL_FUNCTION(void, GX2SetTVBuffer, void *buffer, uint32_t buffer_size, int32_t tv_render_mode, GX2SurfaceFormat surface_format, GX2BufferingMode buffering_mode) {
|
DECL_FUNCTION(void, GX2SetTVBuffer, void *buffer, uint32_t buffer_size, int32_t tv_render_mode, GX2SurfaceFormat surface_format, GX2BufferingMode buffering_mode) {
|
||||||
|
|
|
||||||
|
|
@ -1110,11 +1110,11 @@ simple_outline(SFT_Font *font, uint_fast32_t offset, unsigned int numContours, O
|
||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
|
||||||
endPts = calloc(sizeof(uint_fast16_t), numContours);
|
endPts = calloc(numContours, sizeof(uint_fast16_t));
|
||||||
if (endPts == NULL) {
|
if (endPts == NULL) {
|
||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
flags = calloc(sizeof(uint8_t), numPts);
|
flags = calloc(numPts, sizeof(uint8_t));
|
||||||
if (flags == NULL) {
|
if (flags == NULL) {
|
||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
|
@ -1435,7 +1435,7 @@ render_outline(Outline *outl, double transform[6], SFT_Image image) {
|
||||||
|
|
||||||
numPixels = (unsigned int) image.width * (unsigned int) image.height;
|
numPixels = (unsigned int) image.width * (unsigned int) image.height;
|
||||||
|
|
||||||
cells = calloc(sizeof(Cell), numPixels);
|
cells = calloc(numPixels, sizeof(Cell));
|
||||||
if (!cells) {
|
if (!cells) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ void dumpHex(const void *data, size_t size) {
|
||||||
char ascii[17];
|
char ascii[17];
|
||||||
size_t i, j;
|
size_t i, j;
|
||||||
ascii[16] = '\0';
|
ascii[16] = '\0';
|
||||||
DEBUG_FUNCTION_LINE("0x%08X (0x0000): ", data);
|
DEBUG_FUNCTION_LINE("0x%p (0x0000): ", data);
|
||||||
for (i = 0; i < size; ++i) {
|
for (i = 0; i < size; ++i) {
|
||||||
WHBLogWritef("%02X ", ((unsigned char *) data)[i]);
|
WHBLogWritef("%02X ", ((unsigned char *) data)[i]);
|
||||||
if (((unsigned char *) data)[i] >= ' ' && ((unsigned char *) data)[i] <= '~') {
|
if (((unsigned char *) data)[i] >= ' ' && ((unsigned char *) data)[i] <= '~') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user