mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-30 16:06:21 +00:00
Fix build on some compilers regardind switch statement
Fix the famous `error: a label can only be part of a statement and a declaration is not a statement`.
This commit is contained in:
@@ -9398,13 +9398,17 @@ _prepare_filename(ProfWin* window, gchar* url, gchar* path)
|
|||||||
// lets skip private windows and put those files in general download folder
|
// lets skip private windows and put those files in general download folder
|
||||||
switch (window->type) {
|
switch (window->type) {
|
||||||
case WIN_CHAT:
|
case WIN_CHAT:
|
||||||
|
{
|
||||||
ProfChatWin* chatwin = (ProfChatWin*)window;
|
ProfChatWin* chatwin = (ProfChatWin*)window;
|
||||||
jid = chatwin->barejid;
|
jid = chatwin->barejid;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case WIN_MUC:
|
case WIN_MUC:
|
||||||
|
{
|
||||||
ProfMucWin* mucwin = (ProfMucWin*)window;
|
ProfMucWin* mucwin = (ProfMucWin*)window;
|
||||||
jid = mucwin->roomjid;
|
jid = mucwin->roomjid;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user