Skip to content

Commit

Permalink
Fix writable string warning
Browse files Browse the repository at this point in the history
C.y:43:25: warning: ISO C++ forbids converting a string constant to
‘char*’ [-Wwrite-strings]
  • Loading branch information
pefoley2 committed Nov 21, 2016
1 parent ff0fceb commit 4b2d8b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dynC_API/src/C.y
Expand Up @@ -40,7 +40,7 @@ extern std::string lineStr;
#define YYDEBUG 0 //set to 1 for debug mode

// name of current snippet for error reporting
char *dynCSnippetName = "";
char *dynCSnippetName = NULL;

SnippetGenerator *snippetGen;
BPatch_point *snippetPoint = NULL;
Expand Down
2 changes: 1 addition & 1 deletion dynC_API/src/dynC.tab.C
Expand Up @@ -110,7 +110,7 @@ extern std::string lineStr;
#define YYDEBUG 0 //set to 1 for debug mode

// name of current snippet for error reporting
char *dynCSnippetName = "";
char *dynCSnippetName = NULL;

SnippetGenerator *snippetGen;
BPatch_point *snippetPoint = NULL;
Expand Down

0 comments on commit 4b2d8b2

Please sign in to comment.