Changeset 128829 in webkit


Ignore:
Timestamp:
Sep 17, 2012 5:40:03 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Including HexNumber.h fails build if hexDigitsForMode is not referenced
https://bugs.webkit.org/show_bug.cgi?id=96873

Patch by Glenn Adams <glenn@skynav.com> on 2012-09-17
Reviewed by Benjamin Poulain.

Ensure release build is possible when hexDigitsForMode is not referenced by
template expansion.

  • wtf/HexNumber.h:

(WTF::Internal::hexDigitsForMode):
Change hexDigitsForMode to inline (rather than static). Make string literals
{lower,upper}HexDigits non-local and non-static, but const, to which the linker
should merge references in the RO data segment.

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r128820 r128829  
     12012-09-17  Glenn Adams  <glenn@skynav.com>
     2
     3        Including HexNumber.h fails build if hexDigitsForMode is not referenced
     4        https://bugs.webkit.org/show_bug.cgi?id=96873
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        Ensure release build is possible when hexDigitsForMode is not referenced by
     9        template expansion.
     10
     11        * wtf/HexNumber.h:
     12        (WTF::Internal::hexDigitsForMode):
     13        Change hexDigitsForMode to inline (rather than static). Make string literals
     14        {lower,upper}HexDigits non-local and non-static, but const, to which the linker
     15        should merge references in the RO data segment.
     16
    1172012-09-17  Filip Pizlo  <fpizlo@apple.com>
    218
  • trunk/Source/WTF/wtf/HexNumber.h

    r111778 r128829  
    3232namespace Internal {
    3333
    34 static const char* hexDigitsForMode(HexConversionMode mode)
     34const char lowerHexDigits[17] = "0123456789abcdef";
     35const char upperHexDigits[17] = "0123456789ABCDEF";
     36inline const char* hexDigitsForMode(HexConversionMode mode)
    3537{
    36     static const char lowerHexDigits[17] = "0123456789abcdef";
    37     static const char upperHexDigits[17] = "0123456789ABCDEF";
    3838    return mode == Lowercase ? lowerHexDigits : upperHexDigits;
    3939}
Note: See TracChangeset for help on using the changeset viewer.