PROGS=notmuch
-CXXWARNINGS_FLAGS=-Wall -Wextra
+CXXWARNINGS_FLAGS=-Wall -Wextra -Wwrite-strings
CWARNINGS_FLAGS=$(CXXWARNINGS_FLAGS)
CDEPENDS_FLAGS=`pkg-config --cflags glib-2.0 talloc`
/* hrm, is there a library for this stuff? */
static struct {
- char *name;
+ const char *name;
int offset;
} tz_offsets [] = {
{ "UT", 0 },
{ "Y", 1200 },
};
-static char *tm_months[] = {
+static const char *tm_months[] = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};
-static char *tm_days[] = {
+static const char *tm_days[] = {
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
};