Skip to content

Commit d5ea7e9

Browse files
committed
Fix some warnings
1 parent c0d9040 commit d5ea7e9

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ SOURCES_CPP := $(shell find -L $(SOURCEDIRS) -name "*.cpp")
5252
# Compiler and linker flags
5353
# -------------------------
5454

55-
WARNFLAGS_C := -Wall -Wno-multichar -Wno-unused-but-set-variable \
56-
-Wno-unused-variable -Wno-unused-result
55+
WARNFLAGS_C := -Wall -Wextra -Wno-multichar -Wno-unused-but-set-variable \
56+
-Wno-unused-result -Wno-sign-compare -Wno-type-limits
5757

5858
WARNFLAGS_CXX := -Wall
5959

source/msl.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ void MSL_Erase( void )
7070
u16 MSL_AddSample( Sample* samp )
7171
{
7272
u32 sample_length;
73-
u32 x;
7473
file_open_write_end( TMP_SAMP );
7574

7675
sample_length = samp->sample_length;
@@ -393,4 +392,4 @@ int MSL_Create( char* argv[], int argc, char* output, char* header, bool verbose
393392
file_delete( TMP_SAMP );
394393
file_delete( TMP_SONG );
395394
return ERR_NONE;
396-
}
395+
}

source/s3m.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,10 @@ int Load_S3M( MAS_Module* mod, bool verbose )
269269
for( x = 0; x < 28; x++ )
270270
mod->title[x] = read8(); // read song name
271271

272-
if( read8() != 0x1A );
272+
read8(); // No need to check this value
273+
// if( read8() != 0x1A )
273274
// return ERR_INVALID_MODULE;
275+
274276
if( read8() != 16 )
275277
return ERR_INVALID_MODULE;
276278
if( verbose )

source/upload.c

+1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424

2525
void Upload_GBA( char* filename )
2626
{
27+
(void)filename;
2728
// todo.........
2829
}

0 commit comments

Comments
 (0)