ruby-changes:24009
From: shyouhei <ko1@a...>
Date: Wed, 13 Jun 2012 17:58:17 +0900 (JST)
Subject: [ruby-changes:24009] shyouhei:r36060 (trunk): * regparse.c (PFETCH_READY): this line was to suppress warning,
shyouhei 2012-06-13 17:58:05 +0900 (Wed, 13 Jun 2012) New Revision: 36060 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36060 Log: * regparse.c (PFETCH_READY): this line was to suppress warning, but did emit warnings if -Wuninitialized was set. Assigning NULL instead if pfetch_prev should suffice the situation. Modified files: trunk/ChangeLog trunk/regparse.c Index: regparse.c =================================================================== --- regparse.c (revision 36059) +++ regparse.c (revision 36060) @@ -265,7 +265,7 @@ #ifdef __GNUC__ /* get rid of Wunused-but-set-variable */ -#define PFETCH_READY UChar* pfetch_prev = pfetch_prev +#define PFETCH_READY UChar* pfetch_prev = NULL #else #define PFETCH_READY UChar* pfetch_prev #endif Index: ChangeLog =================================================================== --- ChangeLog (revision 36059) +++ ChangeLog (revision 36060) @@ -1,3 +1,9 @@ +Wed Jun 13 17:54:38 2012 URABE Shyouhei <shyouhei@r...> + + * regparse.c (PFETCH_READY): this line was to suppress warning, + but did emit warnings if -Wuninitialized was set. Assigning + NULL instead if pfetch_prev should suffice the situation. + Wed Jun 13 17:51:05 2012 Nobuyoshi Nakada <nobu@r...> * configure.in: cygwin needs C99 for some stuff, e.g., -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/