Closed
Bug 818611
Opened 13 years ago
Closed 13 years ago
gtk2xtbin.c:478:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement ]
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
1.37 KB,
patch
|
karlt
:
review+
|
Details | Diff | Splinter Review |
Filing bug on build warning:
{
widget/gtkxtbin/gtk2xtbin.c:478:5: warning: ISO C90 forbids mixed declarations and code [-pedantic]
}
This is in code added for bug 544088.
Assignee | ||
Comment 1•13 years ago
|
||
Trivial fix -- just declare the variable at the beginning of the block. I also fixed up some whitespace oddness in contextual code.
Attachment #688883 -
Flags: review?(karlt)
Comment 2•13 years ago
|
||
The change looks fine, but mixed declarations are permitted in C99.
Would it make more sense to add -Wno-declaration-after-statement?
See -Wdeclaration-after-statement at http://gcc.gnu.org/onlinedocs/gcc-4.5.4/gcc/Warning-Options.html
Comment 3•13 years ago
|
||
Comment on attachment 688883 [details] [diff] [review]
fix
Oh, I see bug 659707 and it is not worth playing with flags in non-MSVC code.
Attachment #688883 -
Flags: review?(karlt) → review+
Updated•13 years ago
|
Blocks: 659707
Summary: gtk2xtbin.c:478:5: warning: ISO C90 forbids mixed declarations and code [-pedantic] → gtk2xtbin.c:478:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement ]
Assignee | ||
Comment 4•13 years ago
|
||
Comment 5•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in
before you can comment on or make changes to this bug.
Description
•