Bug 96873 - Including HexNumber.h fails build if hexDigitsForMode is not referenced
Summary: Including HexNumber.h fails build if hexDigitsForMode is not referenced
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Glenn Adams
URL:
Keywords:
Depends on:
Blocks: 96749
  Show dependency treegraph
 
Reported: 2012-09-15 18:20 PDT by Glenn Adams
Modified: 2012-09-17 17:39 PDT (History)
3 users (show)

See Also:


Attachments
Patch (1.35 KB, patch)
2012-09-15 18:28 PDT, Glenn Adams
no flags Details | Formatted Diff | Diff
Patch (1.69 KB, patch)
2012-09-15 21:34 PDT, Glenn Adams
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Glenn Adams 2012-09-15 18:20:52 PDT
If HexNumber.h is included without expanding one of the templates that references hexDigitsForMode, then some release builds fail due to presence of unneeded internal declaration. For example, see [1].

Source/WTF/wtf/HexNumber.h:34:20: error: function 'hexDigitsForMode' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration,12]
 static const char* hexDigitsForMode(HexConversionMode mode)
                    ^
1 error generated.

[1] http://build.webkit.org/builders/Apple%20Lion%20Release%20%28Build%29/builds/3900/steps/compile-webkit/logs/stdio
Comment 1 Glenn Adams 2012-09-15 18:28:11 PDT
Created attachment 164299 [details]
Patch
Comment 2 Glenn Adams 2012-09-15 21:34:43 PDT
Created attachment 164304 [details]
Patch
Comment 3 WebKit Review Bot 2012-09-17 17:39:41 PDT
Comment on attachment 164304 [details]
Patch

Clearing flags on attachment: 164304

Committed r128829: <http://trac.webkit.org/changeset/128829>
Comment 4 WebKit Review Bot 2012-09-17 17:39:44 PDT
All reviewed patches have been landed.  Closing bug.