Closed
Bug 666621
Opened 14 years ago
Closed 14 years ago
jpeg/ - compiler warnings with gcc ("'main' is usually a function", and "section flags ignored on section redeclaration")
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: joey, Assigned: atulagrwl)
References
(Blocks 1 open bug)
Details
(Whiteboard: [build_warning])
Attachments
(1 file)
593 bytes,
patch
|
jrmuizel
:
review-
|
Details | Diff | Splinter Review |
% uname -a
Darwin banshee.local 10.7.4 Darwin Kernel Version 10.7.4: Mon Apr 18 21:24:17 PDT 2011; root:xnu-1504.14.12~3/RELEASE_X86_64 x86_64
/mozilla/sandbox/gml/jpeg/jdmainct.c:164: warning: 'main' is usually a function
/mozilla/sandbox/gml/jpeg/jdmainct.c:205: warning: 'main' is usually a function
/mozilla/sandbox/gml/jpeg/jdmainct.c:245: warning: 'main' is usually a function
/mozilla/sandbox/gml/jpeg/jdmainct.c:274: warning: 'main' is usually a function
/mozilla/sandbox/gml/jpeg/jdmainct.c:311: warning: 'main' is usually a function
/mozilla/sandbox/gml/jpeg/jdmainct.c:351: warning: 'main' is usually a function
/mozilla/sandbox/gml/jpeg/jdmainct.c:391: warning: 'main' is usually a function
/mozilla/sandbox/gml/jpeg/jdmainct.c:480: warning: 'main' is usually a function
/mozilla/sandbox/gml/jpeg/jcmainct.c:71: warning: 'main' is usually a function
/mozilla/sandbox/gml/jpeg/jcmainct.c:117: warning: 'main' is usually a function
/mozilla/sandbox/gml/jpeg/jcmainct.c:247: warning: 'main' is usually a function
/mozilla/sandbox/gml/jpeg/simd/jccolss2-64.asm:34: warning: section flags ignored on section redeclaration
/mozilla/sandbox/gml/jpeg/simd/jdsamss2-64.asm:23: warning: section flags ignored on section redeclaration
/mozilla/sandbox/gml/jpeg/simd/jfss2fst-64.asm:47: warning: section flags ignored on section redeclaration
/mozilla/sandbox/gml/jpeg/simd/jfss2int-64.asm:67: warning: section flags ignored on section redeclaration
/mozilla/sandbox/gml/jpeg/simd/jdcolss2-64.asm:35: warning: section flags ignored on section redeclaration
/mozilla/sandbox/gml/jpeg/simd/jfsseflt-64.asm:38: warning: section flags ignored on section redeclaration
/mozilla/sandbox/gml/jpeg/simd/jiss2flt-64.asm:38: warning: section flags ignored on section redeclaration
/mozilla/sandbox/gml/jpeg/simd/jdmerss2-64.asm:35: warning: section flags ignored on section redeclaration
/mozilla/sandbox/gml/jpeg/simd/jiss2fst-64.asm:54: warning: section flags ignored on section redeclaration
/mozilla/sandbox/gml/jpeg/simd/jiss2int-64.asm:67: warning: section flags ignored on section redeclaration
/mozilla/sandbox/gml/jpeg/simd/jiss2red-64.asm:73: warning: section flags ignored on section redeclaration
Reporter | ||
Updated•14 years ago
|
Whiteboard: [build_warnings]
Updated•14 years ago
|
Whiteboard: [build_warnings] → [build_warning]
Updated•14 years ago
|
Blocks: buildwarning
Assignee | ||
Comment 1•14 years ago
|
||
Based on https://bugzilla.mozilla.org/attachment.cgi?id=463896&action=diff on current mozilla-central branch.
Updated•14 years ago
|
Summary: jpeg/ - compiler warnings on mac → jpeg/ - compiler warnings with gcc ("'main' is usually a function", and "section flags ignored on section redeclaration")
Comment 2•14 years ago
|
||
Comment on attachment 556853 [details] [diff] [review]
Patch v1
Does this fix the "section flags ignored on section redeclaration" warning?
Assignee | ||
Comment 3•14 years ago
|
||
Justin, Not actually. I really don't know the reason for this warning. I should have mentioned in the patch about it but I forgot to do so.
Comment 5•14 years ago
|
||
So then this isn't really a dupe of 585414, because that bug contains just one warning, and this one contains two. Would you mind editing the summary of this bug so it reflects what you're fixing here?
Assignee | ||
Comment 6•14 years ago
|
||
Justin, I agree this is not a duplicate but this bug is super-set of bug 585414. Currently I am only fixing the first part of the bug (which involves errors in *.c files).
Assignee | ||
Updated•14 years ago
|
Attachment #556853 -
Flags: review?(jmuizelaar)
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → atulagrwl
Comment 7•14 years ago
|
||
Comment on attachment 556853 [details] [diff] [review]
Patch v1
I'd rather fix this upstream or disable this warning for libjpeg.
Attachment #556853 -
Flags: review?(jmuizelaar) → review-
Assignee | ||
Comment 8•14 years ago
|
||
How feasible it is to fix this upstream knowing that it would impact multiple files for just compiler warnings?
Comment 9•14 years ago
|
||
(In reply to Atul Aggarwal from comment #8)
> How feasible it is to fix this upstream knowing that it would impact
> multiple files for just compiler warnings?
I don't know, but you could send an e-mail to the libjpeg-turbo mailing list.
Assignee | ||
Comment 10•14 years ago
|
||
(In reply to Justin Lebar [:jlebar] from comment #9)
> (In reply to Atul Aggarwal from comment #8)
> > How feasible it is to fix this upstream knowing that it would impact
> > multiple files for just compiler warnings?
>
> I don't know, but you could send an e-mail to the libjpeg-turbo mailing list.
Sent an email to libjpeg-turbo-devel mailing list. Waiting for their reply and will act accordingly.
Comment 11•14 years ago
|
||
I applied a patch to fix the "main" warnings but am unsure what is causing the assembler warnings. I don't see those on any of my systems.
Assignee | ||
Comment 12•14 years ago
|
||
DRC, When will the patch submitted by me be applied to libjpeg-turbo?
Comment 13•14 years ago
|
||
Your patch had to be modified slightly, but as I indicated above, the portion of it that fixes the "main" warnings has been applied (in trunk.)
I am unwilling to apply the rest of the patch until it is understood why the assembler warnings are occurring. I cannot currently reproduce those, nor do I have time to diagnose them (nor do I really care, frankly, as long as the code builds and runs properly.)
Assignee | ||
Comment 14•14 years ago
|
||
DRC, Good enough for me. I also have no idea why assembler warnings are being thrown but we should fix "main" warnings.
Thanks a lot for such quick turnaround.
Comment 15•14 years ago
|
||
Given that DRC's applied the relevant bits upstream, let's call this Mozilla bug finished.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•