Add mozilla-gcc46.patch: fix compilation with gcc 4.6
authoridoenmez@novell.com
Mon, 28 Mar 2011 19:22:41 +0200
changeset 245 930e17048499
parent 244 e78e26a38f6d
child 247 71521dfedb0b
Add mozilla-gcc46.patch: fix compilation with gcc 4.6
mozilla-gcc46.patch
mozilla-xulrunner20/mozilla-gcc46.patch
mozilla-xulrunner20/mozilla-xulrunner20.changes
mozilla-xulrunner20/mozilla-xulrunner20.spec
series
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mozilla-gcc46.patch	Mon Mar 28 19:22:41 2011 +0200
@@ -0,0 +1,85 @@
+See the following bug reports;
+
+https://bugzilla.mozilla.org/show_bug.cgi?id=623116
+https://bugzilla.mozilla.org/show_bug.cgi?id=623123
+https://bugzilla.mozilla.org/show_bug.cgi?id=623126
+https://bugzilla.mozilla.org/show_bug.cgi?id=628371
+
+diff --git a/xpcom/base/nsDebugImpl.h b/xpcom/base/nsDebugImpl.h
+--- a/xpcom/base/nsDebugImpl.h
++++ b/xpcom/base/nsDebugImpl.h
+@@ -40,6 +40,7 @@
+ class nsDebugImpl : public nsIDebug2
+ {
+ public:
++    nsDebugImpl() {}
+     NS_DECL_ISUPPORTS
+     NS_DECL_NSIDEBUG
+     NS_DECL_NSIDEBUG2
+diff --git a/xpcom/base/nsTraceRefcntImpl.h b/xpcom/base/nsTraceRefcntImpl.h
+--- a/xpcom/base/nsTraceRefcntImpl.h
++++ b/xpcom/base/nsTraceRefcntImpl.h
+@@ -44,6 +44,7 @@
+ class nsTraceRefcntImpl : public nsITraceRefcnt
+ {
+ public:
++  nsTraceRefcntImpl() {}
+   NS_DECL_ISUPPORTS
+   NS_DECL_NSITRACEREFCNT
+ 
+diff --git a/xpcom/glue/nsEnumeratorUtils.cpp b/xpcom/glue/nsEnumeratorUtils.cpp
+--- a/xpcom/glue/nsEnumeratorUtils.cpp
++++ b/xpcom/glue/nsEnumeratorUtils.cpp
+@@ -52,6 +52,7 @@ class EmptyEnumeratorImpl : public nsISi
+                             public nsIStringEnumerator
+ {
+ public:
++    EmptyEnumeratorImpl() {}
+     // nsISupports interface
+     NS_DECL_ISUPPORTS_INHERITED  // not really inherited, but no mRefCnt
+ 
+diff --git a/xpcom/io/nsUnicharInputStream.h b/xpcom/io/nsUnicharInputStream.h
+--- a/xpcom/io/nsUnicharInputStream.h
++++ b/xpcom/io/nsUnicharInputStream.h
+@@ -51,6 +51,7 @@ class nsSimpleUnicharStreamFactory :
+   private nsISimpleUnicharStreamFactory
+ {
+ public:
++  nsSimpleUnicharStreamFactory() {}
+   NS_DECL_ISUPPORTS_INHERITED
+   NS_DECL_NSIFACTORY
+   NS_DECL_NSISIMPLEUNICHARSTREAMFACTORY
+diff --git a/intl/unicharutil/util/nsUnicharUtils.h b/intl/unicharutil/util/nsUnicharUtils.h
+--- a/intl/unicharutil/util/nsUnicharUtils.h
++++ b/intl/unicharutil/util/nsUnicharUtils.h
+@@ -103,6 +103,7 @@ public:
+ class nsASCIICaseInsensitiveStringComparator : public nsStringComparator
+ {
+ public:
++  nsASCIICaseInsensitiveStringComparator() {}
+   virtual int operator() (const PRUnichar*,
+                           const PRUnichar*,
+                           PRUint32,
+diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp
+--- a/toolkit/xre/nsAppRunner.cpp
++++ b/toolkit/xre/nsAppRunner.cpp
+@@ -616,6 +616,7 @@ class nsXULAppInfo : public nsIXULAppInf
+ 
+ {
+ public:
++  nsXULAppInfo() {}
+   NS_DECL_ISUPPORTS_INHERITED
+   NS_DECL_NSIXULAPPINFO
+   NS_DECL_NSIXULRUNTIME
+diff --git a/embedding/browser/gtk/src/EmbedPrivate.cpp b/embedding/browser/gtk/src/EmbedPrivate.cpp
+index 57fd9b1..0052ca7 100644
+--- a/embedding/browser/gtk/src/EmbedPrivate.cpp
++++ b/embedding/browser/gtk/src/EmbedPrivate.cpp
+@@ -99,6 +99,7 @@ nsIDirectoryServiceProvider *EmbedPrivate::sAppFileLocProvider = nsnull;
+ class GTKEmbedDirectoryProvider : public nsIDirectoryServiceProvider2
+ {
+ public:
++  GTKEmbedDirectoryProvider() {}
+   NS_DECL_ISUPPORTS_INHERITED
+   NS_DECL_NSIDIRECTORYSERVICEPROVIDER
+   NS_DECL_NSIDIRECTORYSERVICEPROVIDER2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mozilla-xulrunner20/mozilla-gcc46.patch	Mon Mar 28 19:22:41 2011 +0200
@@ -0,0 +1,1 @@
+../mozilla-gcc46.patch
\ No newline at end of file
--- a/mozilla-xulrunner20/mozilla-xulrunner20.changes	Mon Mar 28 19:10:37 2011 +0200
+++ b/mozilla-xulrunner20/mozilla-xulrunner20.changes	Mon Mar 28 19:22:41 2011 +0200
@@ -1,3 +1,13 @@
+-------------------------------------------------------------------
+Mon Mar 28 19:21:46 UTC 2011 - idoenmez@novell.com
+
+- Add mozilla-gcc46.patch: fix compilation with gcc 4.6
+  See the following bug reports:
+    https://bugzilla.mozilla.org/show_bug.cgi?id=623116
+    https://bugzilla.mozilla.org/show_bug.cgi?id=623123
+    https://bugzilla.mozilla.org/show_bug.cgi?id=623126
+    https://bugzilla.mozilla.org/show_bug.cgi?id=628371
+
 -------------------------------------------------------------------
 Mon Mar 28 16:25:25 UTC 2011 - llunak@novell.com
 
--- a/mozilla-xulrunner20/mozilla-xulrunner20.spec	Mon Mar 28 19:10:37 2011 +0200
+++ b/mozilla-xulrunner20/mozilla-xulrunner20.spec	Mon Mar 28 19:22:41 2011 +0200
@@ -76,6 +76,7 @@
 Patch15:        mozilla-cairo-return.patch
 Patch16:        mozilla-ntlm-full-path.patch
 Patch17:        mozilla-gecko-version.patch
+Patch18:        mozilla-gcc46.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Requires:       mozilla-js20 = %{version}
 Requires(post):  update-alternatives coreutils
@@ -221,6 +222,7 @@
 %patch15 -p1
 %patch16 -p1
 %patch17 -p1
+%patch18 -p1
 
 %build
 kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3)
--- a/series	Mon Mar 28 19:10:37 2011 +0200
+++ b/series	Mon Mar 28 19:22:41 2011 +0200
@@ -16,6 +16,7 @@
 mozilla-cairo-return.patch
 mozilla-ntlm-full-path.patch
 mozilla-gecko-version.patch
+mozilla-gcc46.patch
 
 # Firefox patches
 firefox-linkorder.patch