Bug 89750 - Missing line continuation in definition of MAYBE_WARN in configure
Summary: Missing line continuation in definition of MAYBE_WARN in configure
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Mac OS X (All)
: medium minor
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-24 22:35 UTC by Larry Baker
Modified: 2015-06-27 07:46 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Larry Baker 2015-03-24 22:35:09 UTC
There is an unintentional (benign) missing line continuation "\" in the definition of MAYBE_WARN in configure.  configure completes and issues a WARNING:

configure: WARNING: cache variable cairo_cv_warn_maybe contains a newline

The error is at line 18461 in configure (release 1.14.2):

$ grep -w -n '[-]Wpacked' configure
18461:-Wpointer-arith -Wwrite-strings -Wsign-compare -Wpacked

I fixed it with sed:

$ sed -i -e '/^MAYBE_WARN=/,/^MAYBE_C_SPECIFIC_WARN=/s/-Wpacked$/-Wpacked \\/' configure

$ grep -w -n '[-]Wpacked' configure
18461:-Wpointer-arith -Wwrite-strings -Wsign-compare -Wpacked \
Comment 1 Bryce Harrington 2015-06-27 07:46:13 UTC
Thanks, good find.  The fix actually needs to go into build/configure.ac.warnings

commit 776dd20c8485e4e70f42a2e66a0545cf87944ac5
Author: Bryce Harrington <bryce@osg.samsung.com>
Date:   Sat Jun 27 00:43:04 2015 -0700

    configure: Fix typo for missing line continuation character

    There is an unintentional (benign) missing line continuation "\" in the
    definition of MAYBE_WARN in configure.  configure completes and issues a
    WARNING:

    configure: WARNING: cache variable cairo_cv_warn_maybe contains a
    newline

    Found and solved by Larry Baker.

    Fixes:  https://bugs.freedesktop.org/show_bug.cgi?id=89750
    Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.