mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
fix warnings
This commit is contained in:
parent
f18bbd48c7
commit
a1d052399a
@ -1188,7 +1188,7 @@ static void browser_window_update_favicon(hlcache_handle *c,
|
||||
}
|
||||
|
||||
/** window callback errorcode handling */
|
||||
void
|
||||
static void
|
||||
browser_window_callback_errorcode(hlcache_handle *c,
|
||||
struct browser_window *bw,
|
||||
nserror code)
|
||||
@ -1201,11 +1201,6 @@ browser_window_callback_errorcode(hlcache_handle *c,
|
||||
message = messages_get("OK");
|
||||
break;
|
||||
|
||||
case NSERROR_UNKNOWN:
|
||||
/**< Unknown error */
|
||||
message = messages_get("Unknown");
|
||||
break;
|
||||
|
||||
case NSERROR_NOMEM:
|
||||
/**< Memory exhaustion */
|
||||
message = messages_get("NoMemory");
|
||||
@ -1251,6 +1246,11 @@ browser_window_callback_errorcode(hlcache_handle *c,
|
||||
message = messages_get("NeedData");
|
||||
break;
|
||||
|
||||
case NSERROR_ENCODING_CHANGE:
|
||||
/**< The character set encoding change was unhandled */
|
||||
message = messages_get("EncodingChanged");
|
||||
break;
|
||||
|
||||
case NSERROR_BAD_PARAMETER:
|
||||
/**< Bad Parameter */
|
||||
message = messages_get("BadParameter");
|
||||
@ -1281,6 +1281,12 @@ browser_window_callback_errorcode(hlcache_handle *c,
|
||||
message = messages_get("BadURL");
|
||||
break;
|
||||
|
||||
default:
|
||||
case NSERROR_UNKNOWN:
|
||||
/**< Unknown error */
|
||||
message = messages_get("Unknown");
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
browser_window_set_status(bw, message);
|
||||
|
Loading…
Reference in New Issue
Block a user