1515#include <nds.h>
1616
1717ARMul_State nds_statestr DTCM_BSS ;
18- void * state_alloc (int s ) { return & nds_statestr ; }
19- void state_free (void * p ) {}
18+
19+ void * state_alloc (int s ) {
20+ UNUSED_VAR (s );
21+ return & nds_statestr ;
22+ }
23+
24+ void state_free (void * p ) {
25+ UNUSED_VAR (p );
26+ }
2027
2128static inline s32 calculate_scale (s32 width , s32 height ) {
2229 const s32 screenAspect = intToFixed (SCREEN_WIDTH , 8 ) / SCREEN_HEIGHT ;
@@ -75,22 +82,29 @@ static bool PDD_Name(Host_ChangeMode)(ARMul_State *state,int width,int height,in
7582
7683static inline void PDD_Name (Host_SetPaletteEntry )(ARMul_State * state ,int i ,uint_fast16_t phys )
7784{
85+ UNUSED_VAR (state );
7886 BG_PALETTE [i ] = ConvertPhysToColour (phys );
7987}
8088
8189static inline void PDD_Name (Host_SetCursorPaletteEntry )(ARMul_State * state ,int i ,uint_fast16_t phys )
8290{
8391 // TODO: Implement this!
92+ UNUSED_VAR (state );
93+ UNUSED_VAR (i );
94+ UNUSED_VAR (phys );
8495}
8596
8697static inline void PDD_Name (Host_SetBorderColour )(ARMul_State * state ,uint_fast16_t phys )
8798{
8899 // TODO: Implement this!
100+ UNUSED_VAR (state );
101+ UNUSED_VAR (phys );
89102}
90103
91104static inline PDD_Row PDD_Name (Host_BeginRow )(ARMul_State * state ,int row ,int offset ,int * alignment )
92105{
93106 PDD_Row drow ;
107+ UNUSED_VAR (state );
94108 drow .dst = ((uint8_t * )bgGetGfxPtr (background )) + (row * PDD_MonitorWidth ) + offset ;
95109 drow .src = RowBuffer ;
96110 drow .count = 0 ;
@@ -100,11 +114,14 @@ static inline PDD_Row PDD_Name(Host_BeginRow)(ARMul_State *state,int row,int off
100114
101115static inline void PDD_Name (Host_EndRow )(ARMul_State * state ,PDD_Row * row )
102116{
117+ UNUSED_VAR (state );
118+ UNUSED_VAR (row );
103119 while (dmaBusy (3 ));
104120}
105121
106122static inline ARMword * PDD_Name (Host_BeginUpdate )(ARMul_State * state ,PDD_Row * row ,unsigned int count ,int * outoffset )
107123{
124+ UNUSED_VAR (state );
108125 row -> count = count ;
109126 * outoffset = 0 ;
110127 return row -> src ;
@@ -114,6 +131,8 @@ static inline void PDD_Name(Host_EndUpdate)(ARMul_State *state,PDD_Row *row)
114131{
115132 unsigned int count = row -> count ;
116133
134+ UNUSED_VAR (state );
135+
117136 DC_FlushRange (row -> src , count >>3 );
118137 while (dmaBusy (3 ));
119138 dmaCopyWordsAsynch (3 , row -> src , row -> dst , count >>3 );
@@ -123,13 +142,15 @@ static inline void PDD_Name(Host_EndUpdate)(ARMul_State *state,PDD_Row *row)
123142
124143static inline void PDD_Name (Host_TransferUpdate )(ARMul_State * state ,PDD_Row * row ,unsigned int count ,const ARMword * src )
125144{
145+ UNUSED_VAR (state );
126146 DC_FlushRange (src , count >>3 );
127147 while (dmaBusy (3 ));
128148 dmaCopyWordsAsynch (3 , src , row -> dst , count >>3 );
129149}
130150
131151static inline void PDD_Name (Host_AdvanceRow )(ARMul_State * state ,PDD_Row * row ,unsigned int count )
132152{
153+ UNUSED_VAR (state );
133154 row -> dst += count >>3 ;
134155}
135156
@@ -144,6 +165,11 @@ static inline void PDD_Name(Host_PollDisplay)(ARMul_State *state)
144165static inline void PDD_Name (Host_DrawBorderRect )(ARMul_State * state ,int x ,int y ,int width ,int height )
145166{
146167 // TODO: Implement this!
168+ UNUSED_VAR (state );
169+ UNUSED_VAR (x );
170+ UNUSED_VAR (y );
171+ UNUSED_VAR (width );
172+ UNUSED_VAR (height );
147173}
148174
149175#include "../arch/paldisplaydev.c"
@@ -152,6 +178,8 @@ static bool PDD_Name(Host_ChangeMode)(ARMul_State *state,int width,int height,in
152178{
153179 s32 xs , ys ;
154180
181+ UNUSED_VAR (hz );
182+
155183 if ((width > PDD_MonitorWidth ) || (height > PDD_MonitorHeight ))
156184 {
157185 ControlPane_Error (false,"Mode %dx%d too big\n" ,width ,height );
0 commit comments