}
mutt_window_clearline(MuttMessageWindow, 0);
SETCOLOR(MT_COLOR_PROMPT);
- addstr((char *) field); /* cast to get around bad prototypes */
+ addstr(field);
NORMAL_COLOR;
mutt_refresh();
mutt_window_getxy(MuttMessageWindow, &x, NULL);
state = DONE;
break;
- case DONE: /* not reached, but gcc complains if this is absent */
+ case DONE: /* not reached */
break;
}
}
free_mbtable((struct MbTable **) MuttVars[idx].var);
else
{
- /* MuttVars[idx].var is already 'char**' (or some 'void**') or...
- * so cast to 'void*' is okay */
FREE((void *) MuttVars[idx].var);
}
}
}
else
{
- /* MuttVars[idx].var is already 'char**' (or some 'void**') or...
- * so cast to 'void*' is okay */
FREE((void *) MuttVars[idx].var);
*((char **) MuttVars[idx].var) = mutt_str_strdup(scratch);
}
char scratch[LONG_STRING];
mutt_str_strfcpy(scratch, NONULL((const char *) val->var), sizeof(scratch));
mutt_expand_path(scratch, sizeof(scratch));
- /* MuttVars[idx].var is already 'char**' (or some 'void**') or...
- * so cast to 'void*' is okay */
FREE((void *) MuttVars[idx].var);
*((char **) MuttVars[idx].var) = mutt_str_strdup(scratch);
break;
case DT_STRING:
case DT_COMMAND:
{
- /* MuttVars[idx].var is already 'char**' (or some 'void**') or...
- * so cast to 'void*' is okay */
FREE((void *) MuttVars[idx].var);
*((char **) MuttVars[idx].var) = mutt_str_strdup((char *) val->var);
}
0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334,
};
- /* Prevent an integer overflow.
- * The time_t cast is an attempt to silence a clang range warning. */
+ /* Prevent an integer overflow. */
if ((time_t) t->tm_year > (TM_YEAR_MAX - 1900))
return TIME_T_MAX;
if ((time_t) t->tm_year < (TM_YEAR_MIN - 1900))
#ifdef USE_SLANG_CURSES
-#ifndef unix /* this symbol is not defined by the hp-ux compiler (sigh) */
+#ifndef unix /* this symbol is not defined by the hp-ux compiler */
#define unix
-#endif /* unix */
+#endif
#include <slang.h> /* in addition to slcurses.h, we need slang.h for the version
number to test for 2.x having UTF-8 support in main.c */
bool pgp_keyblock = false;
bool clearsign = false;
int rv, rc;
- int c = 1; /* silence GCC warning */
+ int c = 1;
long bytes;
LOFF_T last_pos, offset;
char buf[HUGE_STRING];
char body_charset[STRING];
mutt_body_get_charset(m, body_charset, sizeof(body_charset));
- rc = 0; /* silence false compiler warning if (s->flags & MUTT_DISPLAY) */
+ rc = 0;
fseeko(s->fpin, m->offset, SEEK_SET);
last_pos = m->offset;
int num;
unsigned char c;
- /* this cast looks dangerous, but is already all over this code
- * (explicit or not) */
num = (int) strtol(&s->dptr[pmatch[group].rm_so], NULL, 0);
c = (unsigned char) (s->dptr[pmatch[group].rm_eo - 1]);
if (toupper(c) == 'K')