Closed Bug 503279 Opened 15 years ago Closed 14 years ago

Fix "missing initializer" GCC warnings in gfx

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: dholbert)

References

Details

Attachments

(2 files, 1 obsolete file)

gfx/qcms/transform.c: In function ‘adaption_matrix’:
506: warning: missing initializer
506: warning: (near initialization for ‘lam_rigg.invalid’)
Attached patch patchSplinter Review
Attachment #387618 - Flags: review?(jmuizelaar)
I don't really see the point in this warning. I'd rather accept a patch that disables -Wmissing-field-initializers for qcms. Cairo also has a bunch of warnings like this, so it should also be compiled without -Wmissing-field-initializers.
Attachment #387618 - Flags: review?(jmuizelaar) → review-
This patch disables the warning in three gfx subdirectories.

There are currently (before this patch) 61 instances of the warning in gfx/cairo/cairo/, 5 in gfx/cairo/libpixman/, and 1 in gfx/qcms/.  (That covers all the instances of this warning within gfx)
Attachment #457085 - Flags: review?(jmuizelaar)
sorry, should have used CFLAGS, not COMPILE_CFLAGS. (both work, but IIUC, COMPILE_CFLAGS is a superset of the CFLAGS, and just tweaking CFLAGS is sufficient)

Fixed here.
Attachment #457085 - Attachment is obsolete: true
Attachment #457085 - Flags: review?(jmuizelaar)
Attachment #457087 - Flags: review?(jmuizelaar)
Attachment #457087 - Flags: review?(jmuizelaar) → review+
http://hg.mozilla.org/mozilla-central/rev/9c9440d8eee7
Assignee: timeless → dholbert
Status: NEW → RESOLVED
Closed: 14 years ago
Component: GFX: Color Management → Graphics
QA Contact: color-management → thebes
Resolution: --- → FIXED
Summary: In function "adaption_matrix": missing initializer "lam_rigg.invalid" → Fix "missing initializer" GCC warnings in gfx
OS: Mac OS X → All
Hardware: x86 → All
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: