Changes to allow compilation with -Wwrite-strings. That compiler option
is not used for testcases, just for valgrind proper.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13137 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/helgrind/hg_main.c b/helgrind/hg_main.c
index c5bea8c..f5e3625 100644
--- a/helgrind/hg_main.c
+++ b/helgrind/hg_main.c
@@ -1951,9 +1951,9 @@
this is a real lock operation (not a speculative "tryLock"
kind of thing). Duh. Deadlock coming up; but at least
produce an error message. */
- HChar* errstr = "Attempt to re-lock a "
- "non-recursive lock I already hold";
- HChar* auxstr = "Lock was previously acquired";
+ const HChar* errstr = "Attempt to re-lock a "
+ "non-recursive lock I already hold";
+ const HChar* auxstr = "Lock was previously acquired";
if (lk->acquired_at) {
HG_(record_error_Misc_w_aux)( thr, errstr, auxstr, lk->acquired_at );
} else {