GNOME Bugzilla – Bug 552001
gtkimcontextsimple.c: variable is declared at middle of block
Last modified: 2008-09-16 04:44:34 UTC
Please describe the problem: 'value' is declared at the middle of the block in 'check_algorithmically'. Old compiler will occur error, because of C99ism. Steps to reproduce: 1. compile gtkimcontextsimple.c Actual results: Following messages are displayed.(Visual C++) gtkimcontextsimple.c(491) : error C2275: 'gunichar' : illegal use of this type as an expression glib/gunicode.h(34) : see declaration of 'gunichar' gtkimcontextsimple.c(491) : error C2146: syntax error : missing ';' before identifier 'value' gtkimcontextsimple.c(491) : error C2065: 'value' : undeclared identifier Expected results: The declaration should be moved to the top of the block. Does this happen every time? Revision 21339 or later Other information:
Created attachment 118607 [details] [review] patch for gtkimcontextsimple.c
thanks, please commit
2008-09-16 Matthias Clasen <mclasen@redhat.com> Bug 552001 – gtkimcontextsimple.c: variable is declared at middle of block * gtk/gtkimcontextsimple.c: Fix a C99ism, pointed out by Kazuki Iwamoto.