clear_lex_stuff returns void, not char *.
[p5sagit/Devel-Declare.git] / Declare.xs
index 41488e5..3b8c5dd 100644 (file)
@@ -108,7 +108,6 @@ char* dd_get_linestr(pTHX) {
 
 void dd_set_linestr(pTHX_ char* new_value) {
   int new_len = strlen(new_value);
-  char* old_linestr = SvPVX(PL_linestr);
 
   if (SvLEN(PL_linestr) < new_len) {
     croak("forced to realloc PL_linestr for line %s, bailing out before we crash harder", SvPVX(PL_linestr));
@@ -127,7 +126,7 @@ char* dd_get_lex_stuff(pTHX) {
   return (DD_HAVE_LEX_STUFF ? SvPVX(PL_lex_stuff) : "");
 }
 
-char* dd_clear_lex_stuff(pTHX) {
+void dd_clear_lex_stuff(pTHX) {
   if (DD_HAVE_PARSER)
     PL_lex_stuff = (SV*)NULL;
 }
@@ -284,7 +283,6 @@ STATIC OP *(*dd_old_ck_const)(pTHX_ OP*op);
 
 STATIC OP *dd_ck_const(pTHX_ OP *o) {
   int dd_flags;
-  char* s;
   char* name;
 
   o = dd_old_ck_const(aTHX_ o); /* let the original do its job */