Skip to content

Commit 0c13836

Browse files
authored
Merge pull request #967 from kaisa847/fix/rom0-info-unused-param
kernel: fix -Wunused-parameter in rom0_info.h inline wrappers
2 parents bfe60a0 + c7aecd9 commit 0c13836

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎ee/kernel/include/rom0_info.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ extern void SetupRomInfo(void);
3535
* @return 1 if DESR-XXXX machine; 0 if not
3636
*/
3737
extern int IsDESRMachine(void);
38-
static inline int IsDESRMachineWithIODriver(const _io_driver *driver) { return IsDESRMachine(); }
38+
static inline int IsDESRMachineWithIODriver(const _io_driver *driver) { (void)driver; return IsDESRMachine(); }
3939

4040
/** check whether the PlayStation 2 is actually a TOOL DTL-T10000(H)
4141
*
4242
* @return 1 if DTL-T10000(H); 0 if not
4343
*/
4444
extern int IsT10K(void);
45-
static inline int IsT10KWithIODriver(const _io_driver *driver) { return IsT10K(); }
45+
static inline int IsT10KWithIODriver(const _io_driver *driver) { (void)driver; return IsT10K(); }
4646

4747
/** gets the romname from the current ps2
4848
* 14 chars - doesnt set a null terminator
@@ -51,7 +51,7 @@ static inline int IsT10KWithIODriver(const _io_driver *driver) { return IsT10K()
5151
* @return pointer to buffer containing romname
5252
*/
5353
extern char *GetRomName(char *romname);
54-
static inline char *GetRomNameWithIODriver(char *romname, const _io_driver *driver) { return GetRomName(romname); }
54+
static inline char *GetRomNameWithIODriver(char *romname, const _io_driver *driver) { (void)driver; return GetRomName(romname); }
5555

5656
#ifdef __cplusplus
5757
}

0 commit comments

Comments
 (0)