]> granicus.if.org Git - check/commitdiff
silence warnings when assigning constant string to char*
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 4 Nov 2012 03:23:41 +0000 (03:23 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Sun, 4 Nov 2012 03:23:41 +0000 (03:23 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@649 64e312b2-a51f-0410-8e61-82d0ca0eb02a

src/check_print.c

index 2e85d56118f70498b58d953ebcd045e580ace5d9..2e001a4eb8e3e8256cdefe833156f582a406f320 100644 (file)
@@ -136,8 +136,8 @@ void tr_fprint (FILE *file, TestResult *tr, enum print_output print_mode)
 void tr_xmlprint (FILE *file, TestResult *tr, enum print_output print_mode CK_ATTRIBUTE_UNUSED)
 {
   char result[10];
-  char *path_name = "";
-  char *file_name = "";
+  char *path_name = (char*)"";
+  char *file_name = (char*)"";
   char *slash = NULL;
 
   switch (tr->rtype) {