Closed
Bug 727145
Opened 13 years ago
Closed 13 years ago
Pass -Wno-return-type-c-linkage to clang
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla13
People
(Reporter: espindola, Assigned: espindola)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
I am normally in favour of fixing warnings by changing the code or changing the compiler, but clang's return-type-c-linkage is the complete oposite of what we do with jsval, so it is probably better to just disable it.
Attachment #597080 -
Flags: review?(ted.mielczarek)
Comment 1•13 years ago
|
||
I ran into this today on Linux using a build pulled after r150418.
Looks like an unwanted change to build/macosx/common snuck into the patch up for review.
OS: Mac OS X → All
Hardware: x86 → All
Assignee | ||
Comment 2•13 years ago
|
||
now without the bits in build/macosx/common.
Assignee: nobody → respindola
Attachment #597080 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #597080 -
Flags: review?(ted.mielczarek)
Attachment #597521 -
Flags: review?(ted.mielczarek)
Assignee | ||
Updated•13 years ago
|
Blocks: clang-macosx
Updated•13 years ago
|
Attachment #597521 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
Comment 5•13 years ago
|
||
This change causes Xcode 4.0.2 (Mac OS X 10.6) to print many
warning: unknown warning option '-Wno-return-type-c-linkage' [-Wunknown-warning-option]
ireid% clang --version
Apple clang version 2.0 (tags/Apple/clang-139) (based on LLVM 2.9svn)
Target: x86_64-apple-darwin10
Thread model: posix
Comment 6•13 years ago
|
||
(In reply to Irving Reid (:irving) from comment #5)
> This change causes Xcode 4.0.2 (Mac OS X 10.6) to print many
>
> warning: unknown warning option '-Wno-return-type-c-linkage'
> [-Wunknown-warning-option]
That's because Clang added the new warning only a few weeks ago in the not-yet-released 3.1 release.
Perhaps we could add -Wno-unknown-warning-option to the default Clang compiler flags...
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•