summaryrefslogtreecommitdiffstats
path: root/src/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'src/hooks')
-rw-r--r--src/hooks/Makefile.am2
-rw-r--r--src/hooks/abrt-hook-ccpp.c2
2 files changed, 2 insertions, 2 deletions
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)
{