Skip to content

Commit 4cb2bad

Browse files
author
grimes2
committed
Fix warnings
1 parent dff6e4b commit 4cb2bad

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

foo_loop.cpp

+15-15
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ double loop_length;
2323
bool menu_loop_enabled = false;
2424

2525
VOID CALLBACK LoopTimer(
26-
HWND hwnd, // handle to window for timer messages
27-
UINT message, // WM_TIMER message
26+
HWND, // handle to window for timer messages
27+
UINT, // WM_TIMER message
2828
UINT idEvent1, // timer identifier
29-
DWORD dwTime) // current system time
29+
DWORD) // current system time
3030
{
3131
if (menu_loop_enabled)
3232
{
@@ -119,7 +119,7 @@ class mainmenu_commands_loop : public mainmenu_commands
119119
loop_position_end = static_api_ptr_t<playback_control>()->playback_get_position();
120120
static_api_ptr_t<playback_control>()->playback_seek(loop_position_start);
121121
loop_length = loop_position_end - loop_position_start;
122-
ptr2 = SetTimer(NULL, ID_TIMER2, loop_length * 1000, (TIMERPROC)LoopTimer);
122+
ptr2 = SetTimer(NULL, ID_TIMER2, (UINT)loop_length * 1000, (TIMERPROC)LoopTimer);
123123
console::info("End playback time of loop");
124124
}
125125
}
@@ -169,7 +169,7 @@ class mainmenu_commands_loop : public mainmenu_commands
169169
}
170170
virtual t_uint32 get_sort_priority()
171171
{
172-
return sort_priority_dontcare;
172+
return 0x80000000;
173173
}
174174
bool is_checked(t_uint32 p_index)
175175
{
@@ -184,18 +184,18 @@ class play_callback_loop : public play_callback_static
184184
{
185185
public:
186186
unsigned get_flags() { return flag_on_playback_stop; }
187-
virtual void on_playback_seek(double p_time) {}
188-
virtual void on_playback_new_track(metadb_handle_ptr p_track) {}
189-
virtual void on_playback_stop(play_control::t_stop_reason p_reason) {
187+
virtual void on_playback_seek(double) {}
188+
virtual void on_playback_new_track(metadb_handle_ptr) {}
189+
virtual void on_playback_stop(play_control::t_stop_reason) {
190190
if (menu_loop_enabled)
191191
KillTimer(NULL, ptr2);
192192
}
193-
virtual void on_playback_pause(bool p_state) {}
194-
virtual void on_playback_starting(play_control::t_track_command p_command, bool p_paused) {}
195-
virtual void on_playback_edited(metadb_handle_ptr p_track) {}
196-
virtual void on_playback_dynamic_info(const file_info& info) {}
197-
virtual void on_playback_dynamic_info_track(const file_info& info) {}
198-
virtual void on_playback_time(double p_time) {}
199-
virtual void on_volume_change(float p_new_val) {}
193+
virtual void on_playback_pause(bool) {}
194+
virtual void on_playback_starting(play_control::t_track_command, bool) {}
195+
virtual void on_playback_edited(metadb_handle_ptr) {}
196+
virtual void on_playback_dynamic_info(const file_info&) {}
197+
virtual void on_playback_dynamic_info_track(const file_info&) {}
198+
virtual void on_playback_time(double) {}
199+
virtual void on_volume_change(float) {}
200200
};
201201
static play_callback_static_factory_t<play_callback_loop> g_play_callback_loop;

foo_loop.vcxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
<AdditionalIncludeDirectories>..\foobar2000-sdk;..\foobar2000-sdk\foobar2000;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
9797
<DiagnosticsFormat>Caret</DiagnosticsFormat>
9898
<MultiProcessorCompilation>true</MultiProcessorCompilation>
99-
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
99+
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
100100
<TreatAngleIncludeAsExternal>true</TreatAngleIncludeAsExternal>
101101
<ExternalWarningLevel>TurnOffAllWarnings</ExternalWarningLevel>
102102
</ClCompile>
@@ -117,7 +117,7 @@
117117
<MultiProcessorCompilation>true</MultiProcessorCompilation>
118118
<TreatAngleIncludeAsExternal>true</TreatAngleIncludeAsExternal>
119119
<ExternalWarningLevel>TurnOffAllWarnings</ExternalWarningLevel>
120-
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
120+
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
121121
</ClCompile>
122122
<Link>
123123
<SubSystem>Windows</SubSystem>

0 commit comments

Comments
 (0)