Skip to content

Commit

Permalink
Disable -Wunused-variable and fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ribbanya committed Jan 24, 2024
1 parent 261f0b0 commit 44eface
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
27 changes: 14 additions & 13 deletions compile_flags.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@
-Wall
-Wextra
-Werror
-Wno-unused-function
-Wno-unused-parameter
-Wno-unused-value
-Wno-switch
-Wno-incompatible-library-redeclaration
-Wno-tautological-bitwise-compare
-Wno-gnu-folding-constant
-Wno-missing-braces
-Wno-missing-field-initializers
-Werror=strict-prototypes
-Werror=c2x-extensions
-Werror=implicit-function-declaration
-Werror=typedef-redefinition
-Werror=implicit-int
-Werror=incompatible-pointer-types
-Werror=pointer-type-mismatch
-Werror=implicit-int
-Werror=c2x-extensions
-Werror=strict-prototypes
-Werror=typedef-redefinition
-Wno-gnu-folding-constant
-Wno-incompatible-library-redeclaration
-Wno-missing-braces
-Wno-missing-field-initializers
-Wno-switch
-Wno-tautological-bitwise-compare
-Wno-unknown-pragmas
-Wno-unused-function
-Wno-unused-parameter
-Wno-unused-value
-Wno-unused-variable
2 changes: 1 addition & 1 deletion src/melee/mn/mndeflicker.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void mnDeflicker_8024A3E8(HSD_GObj* gobj)

// this feels off
#define GET_GOBJ_USER_DATA(gobj) ((gobj_user_data*) HSD_GObjGetUserData(gobj))
static inline void inline_test()
static inline void inline_test(void)
{
struct sislib_idk* temp_r3_6;
gobj_user_data* user_data = GET_GOBJ_USER_DATA(mnDeflicker_804D6C38);
Expand Down
2 changes: 1 addition & 1 deletion src/sysdolphin/baselib/gobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ void HSD_GObj_80391044(HSD_GObj* gobj)
HSD_LObjSetupInit(HSD_CObjGetCurrent());
}

void HSD_GObj_80391070(HSD_GObj* gobj, s32 arg1)
void HSD_GObj_80391070(HSD_GObj* gobj, int arg1)
{
HSD_JObj* jobj = gobj->hsd_obj;

Expand Down

0 comments on commit 44eface

Please sign in to comment.