diff options
author | rbuj <[email protected]> | 2019-09-05 12:02:59 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-09-08 19:35:20 +0000 |
commit | 4fb087c731af5282dc817bfc8350afe325eef532 (patch) | |
tree | ffc3f2b3660a8937085135062d7ff1b34846a73f /src/fr-command-lha.c | |
parent | a837a98bf1d2b82b4ac7b773b892d9a411e19e77 (diff) | |
download | engrampa-4fb087c731af5282dc817bfc8350afe325eef532.tar.bz2 engrampa-4fb087c731af5282dc817bfc8350afe325eef532.tar.xz |
Initialization discards ‘const’ qualifier from pointer target type
Remove 317 warnings [-Wdiscarded-qualifiers].
Diffstat (limited to 'src/fr-command-lha.c')
-rw-r--r-- | src/fr-command-lha.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fr-command-lha.c b/src/fr-command-lha.c index a3b7398..4d00af7 100644 --- a/src/fr-command-lha.c +++ b/src/fr-command-lha.c @@ -48,10 +48,10 @@ mktime_from_string (char *month, char *mday, char *time_or_year) { - static char *months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", - "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; - struct tm tm = {0, }; - char **fields; + static const char *months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", + "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; + struct tm tm = {0, }; + char **fields; tm.tm_isdst = -1; |