Closed Bug 666135 Opened 13 years ago Closed 13 years ago

Disable -Wcast-align when building with clang

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: craig.topper, Assigned: craig.topper)

References

Details

Attachments

(1 file)

The -Wcast-align flag causes clang to print a lot of warnings. Bug 662971, bug 662969, bug 662964, bug 662962, and bug 662961 have been filed to fix some of these. A better solution is to just disable the flag when building with clang.

It is already disabled on other platforms and compilers due to the amount of warnings it causes in those cases. See bugs 411292, bug 436133, and bug 557758.
Blocks: clang-macosx
Attachment #540979 - Flags: review?(ted.mielczarek)
Assignee: nobody → craig.topper
Comment on attachment 540979 [details] [diff] [review]
Disable -Wcast-align when building with clang

Review of attachment 540979 [details] [diff] [review]:
-----------------------------------------------------------------

::: configure.in
@@ +1581,1 @@
>         # Don't use -Wcast-align with ICC

Can you fix the comment here to mention clang too?

@@ +1631,1 @@
>         # Don't use -Wcast-align with ICC

Here as well.
Attachment #540979 - Flags: review?(ted.mielczarek) → review+
Pushed to inbound with the comment fixed in both configure.in files
Whiteboard: [inbound]
http://hg.mozilla.org/mozilla-central/rev/0c259dad48ac
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: