Silence some warnings that GCC 4.3 triggers.
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Apr 2008 01:31:29 +0000 (01:31 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Apr 2008 01:31:29 +0000 (01:31 +0000)
Rubber-stamped by Antti Koivisto.

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

ChangeLog
GNUmakefile.am
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/ustring.cpp
JavaScriptCore/kjs/ustring.h
WebCore/ChangeLog
WebCore/platform/graphics/Font.h
WebCore/platform/network/ResourceRequestBase.cpp
WebCore/platform/network/ResourceRequestBase.h

index afeeb8a..649aceb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-04-11  Mark Rowe  <mrowe@apple.com>
+
+        Rubber-stamped by Antti Koivisto.
+
+        * GNUmakefile.am: Disable a warning that GCC 4.3 triggers all over the show.
+
 2008-04-17  Alp Toker  <alp@atoker.com>
 
         GTK+ build fix. Back out the libjpeg check part of r32008 from bug
index a0aefbf..1b010bc 100644 (file)
@@ -59,7 +59,7 @@ global_cflags := \
        -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \
        -Wformat -Wformat-security -Wno-format-y2k -Wundef \
        -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings \
-       -Wno-unused-parameter
+       -Wno-unused-parameter -Wno-parentheses
 
 global_cxxflags := \
        $(SYMBOL_VISIBILITY_INLINES)
index 7901752..1053436 100644 (file)
@@ -1,3 +1,12 @@
+2008-04-11  Mark Rowe  <mrowe@apple.com>
+
+        Rubber-stamped by Antti Koivisto.
+
+        Silence GCC 4.3 warnings by removing extraneous consts.
+
+        * kjs/ustring.cpp:
+        * kjs/ustring.h:
+
 2008-04-18  Kevin McCullough  <kmccullough@apple.com>
 
         Reviewed by Sam.
index 70a584b..eb98146 100644 (file)
@@ -945,7 +945,7 @@ bool UString::is8Bit() const
   return true;
 }
 
-const UChar UString::operator[](int pos) const
+UChar UString::operator[](int pos) const
 {
   if (pos >= size())
     return '\0';
index a358dc8..83e4c91 100644 (file)
@@ -284,7 +284,7 @@ namespace KJS {
     /**
      * Const character at specified position.
      */
-    const UChar operator[](int pos) const;
+    UChar operator[](int pos) const;
 
     /**
      * Attempts an conversion to a number. Apart from floating point numbers,
index 2fd6735..bf836a7 100644 (file)
@@ -1,3 +1,13 @@
+2008-04-11  Mark Rowe  <mrowe@apple.com>
+
+        Rubber-stamped by Antti Koivisto.
+
+        Silence GCC 4.3 warnings by removing extraneous consts.
+
+        * platform/graphics/Font.h:
+        * platform/network/ResourceRequestBase.cpp:
+        * platform/network/ResourceRequestBase.h:
+
 2008-04-18  Brady Eidson  <beidson@apple.com>
 
         Rubberstamped by Mark Rowe
index d7901f4..efd80f2 100644 (file)
@@ -93,7 +93,7 @@ public:
     {
     }
 
-    const UChar operator[](int i) const { return m_characters[i]; }
+    UChar operator[](int i) const { return m_characters[i]; }
     const UChar* data(int i) const { return &m_characters[i]; }
 
     const UChar* characters() const { return m_characters; }
index d0fd9d2..8a48192 100644 (file)
@@ -64,7 +64,7 @@ void ResourceRequestBase::setURL(const KURL& url)
     m_platformRequestUpdated = false;
 }
 
-const ResourceRequestCachePolicy ResourceRequestBase::cachePolicy() const
+ResourceRequestCachePolicy ResourceRequestBase::cachePolicy() const
 {
     updateResourceRequest(); 
     
index ad1eff4..19903b4 100644 (file)
@@ -52,7 +52,7 @@ namespace WebCore {
         const KURL& url() const;
         void setURL(const KURL& url);
 
-        const ResourceRequestCachePolicy cachePolicy() const;
+        ResourceRequestCachePolicy cachePolicy() const;
         void setCachePolicy(ResourceRequestCachePolicy cachePolicy);
         
         double timeoutInterval() const;