Ignore:
Timestamp:
Feb 14, 2013, 1:16:47 PM (12 years ago)
Author:
[email protected]
Message:

[Mac] Clean up WARNING_CFLAGS
<http://webkit.org/b/109747>
<rdar://problem/13208373>

Reviewed by Mark Rowe.

Source/JavaScriptCore:

  • Configurations/Base.xcconfig: Use

GCC_WARN_64_TO_32_BIT_CONVERSION to enable and disable
-Wshorten-64-to-32 rather than WARNING_CFLAGS.

Source/WebCore:

  • Configurations/Base.xcconfig: Use

GCC_WARN_64_TO_32_BIT_CONVERSION to enable and disable
-Wshorten-64-to-32 rather than WARNING_CFLAGS.

Source/WebKit/mac:

  • Configurations/Base.xcconfig: Use

GCC_WARN_64_TO_32_BIT_CONVERSION to enable and disable
-Wshorten-64-to-32 rather than WARNING_CFLAGS.

Source/WebKit2:

  • Configurations/Base.xcconfig: Use

GCC_WARN_64_TO_32_BIT_CONVERSION to enable and disable
-Wshorten-64-to-32 rather than WARNING_CFLAGS.

Source/WTF:

  • Configurations/Base.xcconfig: Use

GCC_WARN_64_TO_32_BIT_CONVERSION to enable and disable
-Wshorten-64-to-32 rather than WARNING_CFLAGS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/Configurations/Base.xcconfig

    r132925 r142903  
    4949GCC_TREAT_WARNINGS_AS_ERRORS = YES;
    5050GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
     51// FIXME: <http://webkit.org/b/109834> JavaSciptCore should build with -Wshorten-64-to-32
     52GCC_WARN_64_TO_32_BIT_CONVERSION = $(GCC_WARN_64_TO_32_BIT_CONVERSION_$(CURRENT_ARCH));
     53GCC_WARN_64_TO_32_BIT_CONVERSION_ = YES;
     54GCC_WARN_64_TO_32_BIT_CONVERSION_armv7 = YES;
     55GCC_WARN_64_TO_32_BIT_CONVERSION_armv7s = YES;
     56GCC_WARN_64_TO_32_BIT_CONVERSION_i386 = YES;
     57GCC_WARN_64_TO_32_BIT_CONVERSION_x86_64 = NO;
    5158GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO;
    5259GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
     
    6067VALID_ARCHS_iphonesimulator = $(ARCHS_STANDARD_32_BIT);
    6168VALID_ARCHS_macosx = i386 ppc x86_64 ppc64 $(ARCHS_UNIVERSAL_IPHONE_OS);
    62 WARNING_CFLAGS_BASE = -Wall -Wextra -Wcast-qual -Wchar-subscripts -Wextra-tokens -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -Wexit-time-destructors -Wglobal-constructors -Wtautological-compare;
    63 WARNING_CFLAGS = $(WARNING_CFLAGS_$(PLATFORM_NAME));
    64 WARNING_CFLAGS_iphoneos = $(WARNING_CFLAGS_BASE) -Wshorten-64-to-32;
    65 WARNING_CFLAGS_iphonesimulator = $(WARNING_CFLAGS_BASE) -Wshorten-64-to-32;
    66 WARNING_CFLAGS_macosx = $(WARNING_CFLAGS_macosx_$(CURRENT_ARCH));
    67 WARNING_CFLAGS_macosx_ = $(WARNING_CFLAGS_BASE) -Wshorten-64-to-32;
    68 WARNING_CFLAGS_macosx_i386 = $(WARNING_CFLAGS_BASE) -Wshorten-64-to-32;
    69 WARNING_CFLAGS_macosx_ppc = $(WARNING_CFLAGS_BASE) -Wshorten-64-to-32;
    70 // FIXME: JavaScriptCore 64-bit builds should build with -Wshorten-64-to-32
    71 WARNING_CFLAGS_macosx_x86_64 = $(WARNING_CFLAGS_BASE);
     69WARNING_CFLAGS = -Wall -Wextra -Wcast-qual -Wchar-subscripts -Wextra-tokens -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -Wexit-time-destructors -Wglobal-constructors -Wtautological-compare;
    7270HEADER_SEARCH_PATHS = . icu "${BUILT_PRODUCTS_DIR}/usr/local/include" $(HEADER_SEARCH_PATHS);
    7371
Note: See TracChangeset for help on using the changeset viewer.