From 93b9b18b5096c7591c02036e1c908f3bcbb09f29 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 9 Mar 2011 14:12:09 +0100 Subject: add -Wwrite-strings everywhere Signed-off-by: Denys Vlasenko --- src/hooks/Makefile.am | 2 +- src/hooks/abrt-hook-ccpp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hooks') diff --git a/src/hooks/Makefile.am b/src/hooks/Makefile.am index 8d7cec50..66951f0f 100644 --- a/src/hooks/Makefile.am +++ b/src/hooks/Makefile.am @@ -11,7 +11,7 @@ abrt_hook_ccpp_CPPFLAGS = \ -DVAR_RUN=\"$(VAR_RUN)\" \ -DPLUGINS_CONF_DIR=\"$(PLUGINS_CONF_DIR)\" \ $(GLIB_CFLAGS) \ - -Wall \ + -Wall -Wwrite-strings \ -D_GNU_SOURCE abrt_hook_ccpp_LDADD = \ ../lib/libreport.la diff --git a/src/hooks/abrt-hook-ccpp.c b/src/hooks/abrt-hook-ccpp.c index 7f2d9f55..c2ab166f 100644 --- a/src/hooks/abrt-hook-ccpp.c +++ b/src/hooks/abrt-hook-ccpp.c @@ -174,7 +174,7 @@ static char* get_cwd(pid_t pid) */ /* Must match CORE_PATTERN order in daemon! */ static const char percent_specifiers[] = "%scpugthe"; -static char *core_basename = "core"; +static char *core_basename = (char*) "core"; static int open_user_core(const char *user_pwd, uid_t uid, pid_t pid, char **percent_values) { -- cgit