More clang warning fixes.

This commit is contained in:
Jean-François DEL NERO committed 2026-10-12 08:42:30 +02:00
1 parent 0d118d3b48
commit 73d401f6d1
4 files changed
+14 -11

No files matched your search

@@ -146,12 +146,11 @@ void CALLBACK SoundHandlerProc(HWAVEOUT hwo,UINT uMsg,DWORD * dwInstance,DWORD *
void callback (void *ptr, AudioQueueRef queue, AudioQueueBufferRef buf_ref)
{
OSStatus status;
AudioQueueBuffer *buf = buf_ref;
uintro_getnext_soundsample(gb_ui_context,(short*)buf->mAudioData, buf->mAudioDataByteSize / 2);
status = AudioQueueEnqueueBuffer (queue, buf_ref, 0, NULL);
AudioQueueEnqueueBuffer (queue, buf_ref, 0, NULL);
}
#endif
@@ -969,11 +969,11 @@ int write_back_fileimage()
{
if( strstr(guicontext->last_loaded_image_path, ".img") || strstr(guicontext->last_loaded_image_path, ".IMG" ) )
{
hxcfe_imgExport( imgldr_ctx, guicontext->loadedfloppy, guicontext->last_loaded_image_path, hxcfe_imgGetLoaderID(imgldr_ctx,"RAW_LOADER") );
hxcfe_imgExport( imgldr_ctx, guicontext->loadedfloppy, guicontext->last_loaded_image_path, hxcfe_imgGetLoaderID(imgldr_ctx,(char*)"RAW_LOADER") );
}
else
{
hxcfe_imgExport( imgldr_ctx, guicontext->loadedfloppy, guicontext->last_loaded_image_path, hxcfe_imgGetLoaderID(imgldr_ctx,"HXC_HFE") );
hxcfe_imgExport( imgldr_ctx, guicontext->loadedfloppy, guicontext->last_loaded_image_path, hxcfe_imgGetLoaderID(imgldr_ctx,(char*)"HXC_HFE") );
}
hxcfe_imgDeInitLoader(imgldr_ctx);
@@ -1079,14 +1079,14 @@ int load_indexed_fileimage(int index)
hxc_getcurrentdirectory(cur_directory,sizeof(cur_directory));
findfile_handle = hxc_find_first_file(cur_directory,"*.hfe",&fi);
findfile_handle = hxc_find_first_file(cur_directory,(char*)"*.hfe",&fi);
if(findfile_handle)
{
ret = 1;
i = 0;
while( i < cur_index && ret)
{
ret = hxc_find_next_file(findfile_handle,cur_directory,"*.hfe",&fi);
ret = hxc_find_next_file(findfile_handle,cur_directory,(char*)"*.hfe",&fi);
i++;
}
@@ -1095,7 +1095,7 @@ int load_indexed_fileimage(int index)
hxc_find_close(findfile_handle);
cur_index = 0;
findfile_handle = hxc_find_first_file(cur_directory,"*.hfe",&fi);
findfile_handle = hxc_find_first_file(cur_directory,(char*)"*.hfe",&fi);
if(findfile_handle)
{
strncpy(filename,fi.filename,sizeof(filename)-1);
@@ -63,6 +63,7 @@ extern "C"
extern s_gui_context * guicontext;
void tick_usb(void *v) {
#if !defined(STANDALONEFSBROWSER) && !defined(HXC_STREAMER_MODE)
char tempstr[512];
unsigned long datathroughput;
unsigned long period;
@@ -73,7 +74,6 @@ void tick_usb(void *v) {
window=(usbhxcfecfg_window *)v;
#if !defined(STANDALONEFSBROWSER) && !defined(HXC_STREAMER_MODE)
status=libusbhxcfe_getStats(guicontext->hxcfe,guicontext->usbhxcfe,&stats,0);
snprintf(tempstr,sizeof(tempstr),"%d (%d p/s)",(int)stats.totalpacketsent,(int)stats.packetsent);
@@ -151,9 +151,10 @@ void tick_usb(void *v) {
void usbifcfg_window_datachanged(Fl_Widget * w,void *)
{
#if !defined(STANDALONEFSBROWSER) && !defined(HXC_STREAMER_MODE)
usbhxcfecfg_window *usbcfgw;
Fl_Widget* tw;
#if !defined(STANDALONEFSBROWSER) && !defined(HXC_STREAMER_MODE)
tw=w;
do
{
@@ -196,9 +197,10 @@ void usbifcfg_window_datachanged(Fl_Widget * w,void *)
void ifcfg2_window_datachanged(Fl_Widget * w,void *)
{
#if !defined(STANDALONEFSBROWSER) && !defined(HXC_STREAMER_MODE)
usbhxcfecfg_window *usbcfgw;
Fl_Widget* tw;
#if !defined(STANDALONEFSBROWSER) && !defined(HXC_STREAMER_MODE)
tw=w;
do
{
@@ -228,8 +230,8 @@ void ifcfg2_window_datachanged(Fl_Widget * w,void *)
void resetusbstat_bt(Fl_Button *w,void *)
{
USBStats stats;
#if !defined(STANDALONEFSBROWSER) && !defined(HXC_STREAMER_MODE)
USBStats stats;
libusbhxcfe_getStats(guicontext->hxcfe,guicontext->usbhxcfe,&stats,1);
#endif
}
@@ -973,7 +973,9 @@ Main_Window::Main_Window(int argc, char **argv)
infothread * infoth;
#endif
streamthread * streamth;
#if !defined(STANDALONEFSBROWSER) && !defined(HXC_STREAMER_MODE)
USBStats stats;
#endif
intptr_t tmp_intptr;
txtindex=0;