ConfigFile *cfg;
gchar *filename;
+ (void)widget, (void)data; /* unused arguments */
g_free(flac_cfg.tag_format);
flac_cfg.tag_format = g_strdup(gtk_entry_get_text(GTK_ENTRY(title_tag_entry)));
flac_cfg.file_char_set = Charset_Get_Name_From_Title(gtk_entry_get_text_1(fileCharacterSetEntry));
gtk_widget_destroy(flac_configurewin);
}
-static void configure_destroy(GtkWidget * w, gpointer data)
+static void configure_destroy(GtkWidget *widget, gpointer data)
{
+ (void)widget, (void)data; /* unused arguments */
}
-static void title_tag_override_cb(GtkWidget * w, gpointer data)
+static void title_tag_override_cb(GtkWidget *widget, gpointer data)
{
+ (void)widget, (void)data; /* unused arguments */
flac_cfg.tag_override = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(title_tag_override));
gtk_widget_set_sensitive(title_tag_box, flac_cfg.tag_override);
}
-static void convert_char_set_cb(GtkWidget * w, gpointer data)
+static void convert_char_set_cb(GtkWidget *widget, gpointer data)
{
+ (void)widget, (void)data; /* unused arguments */
flac_cfg.convert_char_set = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(convert_char_set));
gtk_widget_set_sensitive(fileCharacterSetEntry, flac_cfg.convert_char_set);
else
return -1;
- if (n < k)
+ if (n < (size_t)k)
return -1;
wc = *s++ & ((1 << (7 - k)) - 1);
for (i = 1; i < k; i++) {
if (!s)
return 0;
- if (wc < (1 << 7)) {
+ if (wc < (1u << 7)) {
*s++ = wc;
return 1;
}
- else if (wc < (1 << 11)) {
+ else if (wc < (1u << 11)) {
*s++ = 0xc0 | (wc >> 6);
*s++ = 0x80 | (wc & 0x3f);
return 2;
}
- else if (wc < (1 << 16)) {
+ else if (wc < (1u << 16)) {
*s++ = 0xe0 | (wc >> 12);
*s++ = 0x80 | ((wc >> 6) & 0x3f);
*s++ = 0x80 | (wc & 0x3f);
return 3;
}
- else if (wc < (1 << 21)) {
+ else if (wc < (1u << 21)) {
*s++ = 0xf0 | (wc >> 18);
*s++ = 0x80 | ((wc >> 12) & 0x3f);
*s++ = 0x80 | ((wc >> 6) & 0x3f);
*s++ = 0x80 | (wc & 0x3f);
return 4;
}
- else if (wc < (1 << 26)) {
+ else if (wc < (1u << 26)) {
*s++ = 0xf8 | (wc >> 24);
*s++ = 0x80 | ((wc >> 18) & 0x3f);
*s++ = 0x80 | ((wc >> 12) & 0x3f);
*s++ = 0x80 | (wc & 0x3f);
return 5;
}
- else if (wc < (1 << 31)) {
+ else if (wc < (1u << 31)) {
*s++ = 0xfc | (wc >> 30);
*s++ = 0x80 | ((wc >> 24) & 0x3f);
*s++ = 0x80 | ((wc >> 18) & 0x3f);
static int mbtowc_utf8(void *map, int *pwc, const char *s, size_t n)
{
+ (void)map;
return utf8_mbtowc(pwc, s, n);
}
static int wctomb_utf8(void *map, char *s, int wc)
{
+ (void)map;
return utf8_wctomb(s, wc);
}
{
int wc;
+ (void)map;
if (!n || !s)
return 0;
wc = (unsigned char)*s;
static int wctomb_ascii(void *map, char *s, int wc)
{
+ (void)map;
if (!s)
return 0;
if (wc & ~0x7f)
{
int wc;
+ (void)map;
if (!n || !s)
return 0;
wc = (unsigned char)*s;
static int wctomb_iso1(void *map, char *s, int wc)
{
+ (void)map;
if (!s)
return 0;
if (wc & ~0xff)