Fix WebKit2 sandbox profile.
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Sep 2012 01:13:54 +0000 (01:13 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Sep 2012 01:13:54 +0000 (01:13 +0000)
Instead of using #pragmas, just disable all warnings in DerivedSources.make. I suspect
that passing -traditional to the preprocessor disables support for #pragmas but I'm afraid
to change it to something else.

* DerivedSources.make:
* WebProcess/com.apple.WebProcess.sb.in:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@129286 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/DerivedSources.make
Source/WebKit2/WebProcess/com.apple.WebProcess.sb.in

index 9da812f..ac14696 100644 (file)
@@ -1,3 +1,14 @@
+2012-09-21  Anders Carlsson  <andersca@apple.com>
+
+        Fix WebKit2 sandbox profile.
+
+        Instead of using #pragmas, just disable all warnings in DerivedSources.make. I suspect
+        that passing -traditional to the preprocessor disables support for #pragmas but I'm afraid
+        to change it to something else.
+
+        * DerivedSources.make:
+        * WebProcess/com.apple.WebProcess.sb.in:
+
 2012-09-21  Benjamin Poulain  <bpoulain@apple.com>
 
         fast/dom/Geolocation/disconnected-frame.html test asserts
index 496c730..896c8e0 100644 (file)
@@ -119,7 +119,7 @@ FRAMEWORK_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(FRAMEWORK_SEARCH_PATHS) |
 HEADER_FLAGS = $(shell echo $(BUILT_PRODUCTS_DIR) $(HEADER_SEARCH_PATHS) | perl -e 'print "-I" . join(" -I", split(" ", <>));')
 
 ifeq ($(TARGET_GCC_VERSION),LLVM_COMPILER)
-       TEXT_PREPROCESSOR_FLAGS=-E -P -x c -traditional
+       TEXT_PREPROCESSOR_FLAGS=-E -P -x c -traditional -w
 else
        TEXT_PREPROCESSOR_FLAGS=-E -P -x c -std=c89
 endif
index 70021bb..84ff7ed 100644 (file)
@@ -1,6 +1,3 @@
-#pragma clang diagnostic ignored "-Wunknown-pragmas"
-#pragma clang diagnostic ignored "-Winvalid-pp-token"
-
 (version 1)
 (deny default (with partial-symbolication))
 (allow ipc-posix-shm system-audit system-socket file-read-metadata)