[Bug 903288] New: use -fno-strict-aliasing to fix some compilation warnings

bugzilla at redhat.com bugzilla at redhat.com
Wed Jan 23 16:27:23 UTC 2013


Product: Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=903288

            Bug ID: 903288
           Summary: use -fno-strict-aliasing to fix some compilation
                    warnings
           Product: Fedora
           Version: 18
         Component: fontforge
          Severity: medium
          Priority: unspecified
          Reporter: pnemade at redhat.com

Created attachment 686075
  --> https://bugzilla.redhat.com/attachment.cgi?id=686075&action=edit
add -fno-strict-aliasing to every needed Makefile

Description of problem:
I see fontforge build.log showing
ufo.c:1027:2: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
ufo.c:1031:2: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]

spec file shows -fno-strict-aliasing added to CFLAGS but its not in effect.
Attached patch will modify each needed Makefile to add that flag

Also, attached patch removes some makefile rules as they are really not needed


Version-Release number of selected component (if applicable):
fontforge-20120731b-2.fc18.x86_64

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=wWCQRuabHz&a=cc_unsubscribe


More information about the fonts-bugs mailing list