File mozilla-gcc4.patch of Package nvu
--- accessible/src/atk/nsDocAccessibleWrap.cpp
+++ accessible/src/atk/nsDocAccessibleWrap.cpp
@@ -199,7 +199,7 @@
if (NS_SUCCEEDED(rv))
g_signal_emit_by_name(accWrap->GetAtkObject(),
g_strconcat("property_change::",
- values.property_name),
+ values.property_name, NULL),
&values, NULL);
break;
--- gfx/src/gtk/nsFontMetricsXft.cpp
+++ gfx/src/gtk/nsFontMetricsXft.cpp
@@ -1706,7 +1706,7 @@
// Build a list of familes and walk the list looking to see if we
// have it.
- os = FcObjectSetBuild(FC_FAMILY, 0);
+ os = FcObjectSetBuild(FC_FAMILY, NULL);
if (!os)
goto end;
@@ -2420,7 +2420,7 @@
if (!pat)
goto end;
- os = FcObjectSetBuild(FC_FAMILY, FC_FOUNDRY, 0);
+ os = FcObjectSetBuild(FC_FAMILY, FC_FOUNDRY, NULL);
if (!os)
goto end;
--- netwerk/protocol/http/src/nsHttpConnectionMgr.cpp
+++ netwerk/protocol/http/src/nsHttpConnectionMgr.cpp
@@ -43,7 +43,7 @@
#include "nsAutoLock.h"
#include "nsNetCID.h"
#include "nsCOMPtr.h"
-
+#include <inttypes.h>
#include "nsIServiceManager.h"
// defined by the socket transport service while active
@@ -834,8 +834,8 @@
void
nsHttpConnectionMgr::OnMsgUpdateParam(nsresult status, void *param)
{
- PRUint16 name = (PRUint32(param) & 0xFFFF0000) >> 16;
- PRUint16 value = PRUint32(param) & 0x0000FFFF;
+ PRUint16 name = (PRUint32((intptr_t)param) & 0xFFFF0000) >> 16;
+ PRUint16 value = PRUint32((intptr_t)param) & 0x0000FFFF;
switch (name) {
case MAX_CONNECTIONS:
--- security/nss/lib/pki1/nsspki1t.h
+++ security/nss/lib/pki1/nsspki1t.h
@@ -44,7 +44,7 @@
* This file contains the public type definitions for the PKIX part-1
* objects.
*/
-
+#include "pki1t.h"
#ifndef NSSBASET_H
#include "nssbaset.h"
#endif /* NSSBASET_H */
@@ -57,8 +57,8 @@
* This is the basic OID that crops up everywhere.
*/
-struct NSSOIDStr;
-typedef struct NSSOIDStr NSSOID;
+/* struct NSSOIDStr;
+typedef struct NSSOIDStr NSSOID; */
/*
* AttributeTypeAndValue
--- security/nss/lib/pki1/pki1t.h
+++ security/nss/lib/pki1/pki1t.h
@@ -75,6 +75,7 @@
#endif /* DEBUG */
NSSItem data;
};
+typedef struct NSSOIDStr NSSOID;
/*
* nssAttributeTypeAliasTable
--- widget/src/gtk2/nsDragService.cpp
+++ widget/src/gtk2/nsDragService.cpp
@@ -41,7 +41,7 @@
#include <gtk/gtkinvisible.h>
#include <gdk/gdkx.h>
#include "nsCRT.h"
-
+#include <inttypes.h>
static PRLogModuleInfo *sDragLm = NULL;
@@ -838,7 +838,7 @@
(GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
listTarget->target = g_strdup(gMimeListType);
listTarget->flags = 0;
- listTarget->info = (guint)listAtom;
+ listTarget->info = (guint)(intptr_t)listAtom;
PR_LOG(sDragLm, PR_LOG_DEBUG,
("automatically adding target %s with id %ld\n",
listTarget->target, listAtom));
@@ -877,7 +877,7 @@
(GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
listTarget->target = g_strdup(gTextUriListType);
listTarget->flags = 0;
- listTarget->info = (guint)listAtom;
+ listTarget->info = (guint)(intptr_t)listAtom;
PR_LOG(sDragLm, PR_LOG_DEBUG,
("automatically adding target %s with \
id %ld\n", listTarget->target, listAtom));
@@ -914,7 +914,7 @@
(GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
target->target = g_strdup(flavorStr);
target->flags = 0;
- target->info = (guint)atom;
+ target->info = (guint)(intptr_t)atom;
PR_LOG(sDragLm, PR_LOG_DEBUG,
("adding target %s with id %ld\n",
target->target, atom));
@@ -931,7 +931,7 @@
(GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
plainTarget->target = g_strdup(kTextMime);
plainTarget->flags = 0;
- plainTarget->info = (guint)plainAtom;
+ plainTarget->info = (guint)(intptr_t)plainAtom;
PR_LOG(sDragLm, PR_LOG_DEBUG,
("automatically adding target %s with \
id %ld\n", plainTarget->target, plainAtom));
@@ -948,7 +948,7 @@
(GtkTargetEntry *)g_malloc(sizeof(GtkTargetEntry));
urlTarget->target = g_strdup(gMozUrlType);
urlTarget->flags = 0;
- urlTarget->info = (guint)urlAtom;
+ urlTarget->info = (guint)(intptr_t)urlAtom;
PR_LOG(sDragLm, PR_LOG_DEBUG,
("automatically adding target %s with \
id %ld\n", urlTarget->target, urlAtom));