File nightingale-xul192_implicit-fortify-decl.patch of Package nightingale

--- a/xulrunner-1.9.2/mozilla/dom/plugins/PluginScriptableObjectParent.cpp
+++ b/xulrunner-1.9.2/mozilla/dom/plugins/PluginScriptableObjectParent.cpp
@@ -60,7 +60,7 @@ GetIdentifier(PluginInstanceParent* aIns
   PluginModuleParent* module = aInstance->Module();
   if (!module) {
     NS_WARNING("Huh?!");
-    return false;
+    return nsnull;
   }
 
   return module->GetIdentifierForNPIdentifier(aIdentifier);
@@ -73,7 +73,7 @@ GetIdentifier(NPObject* aObject,
   PluginInstanceParent* instance = GetInstance(aObject);
   if (!instance) {
     NS_WARNING("Huh?!");
-    return false;
+    return nsnull;
   }
 
   return GetIdentifier(instance, aIdentifier);
--- a/xulrunner-1.9.2/mozilla/embedding/components/find/src/nsFind.cpp
+++ b/xulrunner-1.9.2/mozilla/embedding/components/find/src/nsFind.cpp
@@ -962,7 +962,7 @@ nsFind::Find(const PRUnichar *aPatText,
     ToLowerCase(patAutoStr);
 
   // Ignore soft hyphens in the pattern  
-  static const char kShy[] = { CH_SHY, 0 };
+  static const char kShy[] = { (char) CH_SHY, 0 };
   patAutoStr.StripChars(kShy);
 
   const PRUnichar* patStr = patAutoStr.get();
--- a/xulrunner-1.9.2/mozilla/gfx/qcms/iccread.c
+++ b/xulrunner-1.9.2/mozilla/gfx/qcms/iccread.c
@@ -23,6 +23,10 @@
 #include <math.h>
 #include <assert.h>
 #include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <sys/socket.h>
 #include "qcmsint.h"
 
 //XXX: use a better typename
--- a/xulrunner-1.9.2/mozilla/ipc/chromium/src/base/file_util.cc
+++ b/xulrunner-1.9.2/mozilla/ipc/chromium/src/base/file_util.cc
@@ -194,7 +194,7 @@ bool ReadFileToString(const FilePath& pa
 FILE* CreateAndOpenTemporaryFile(FilePath* path) {
   FilePath directory;
   if (!GetTempDir(&directory))
-    return false;
+    return NULL;
 
   return CreateAndOpenTemporaryFileInDir(directory, path);
 }
--- a/xulrunner-1.9.2/mozilla/ipc/chromium/src/base/file_util_posix.cc
+++ b/xulrunner-1.9.2/mozilla/ipc/chromium/src/base/file_util_posix.cc
@@ -373,7 +373,7 @@ bool CreateTemporaryFileName(FilePath* p
 FILE* CreateAndOpenTemporaryShmemFile(FilePath* path) {
   FilePath directory;
   if (!GetShmemTempDir(&directory))
-    return false;
+    return NULL;
 
   return CreateAndOpenTemporaryFileInDir(directory, path);
 }
--- a/xulrunner-1.9.2/mozilla/ipc/chromium/src/base/pickle.cc
+++ b/xulrunner-1.9.2/mozilla/ipc/chromium/src/base/pickle.cc
@@ -385,7 +385,7 @@ char* Pickle::BeginWriteData(int length)
     "There can only be one variable buffer in a Pickle";
 
   if (!WriteInt(length))
-    return false;
+    return NULL;
 
   char *data_ptr = BeginWrite(length);
   if (!data_ptr)
--- a/xulrunner-1.9.2/mozilla/js/src/nanojit/NativeX64.cpp
+++ b/xulrunner-1.9.2/mozilla/js/src/nanojit/NativeX64.cpp
@@ -1184,7 +1184,7 @@ namespace nanojit
         NanoAssert(allow & rmask(rr));
     }
 
-    static const AVMPLUS_ALIGN16(int64_t) negateMask[] = {0x8000000000000000LL,0};
+    static const AVMPLUS_ALIGN16(uint64_t) negateMask[] = {0x8000000000000000ULL,0};
 
     void Assembler::asm_fneg(LIns *ins) {
         Register rr, ra;
--- a/xulrunner-1.9.2/mozilla/modules/libpr0n/decoders/jpeg/nsJPEGDecoder.cpp
+++ b/xulrunner-1.9.2/mozilla/modules/libpr0n/decoders/jpeg/nsJPEGDecoder.cpp
@@ -1029,7 +1029,7 @@ term_source (j_decompress_ptr jd)
 /* Use static tables for color processing. */
 /* Four tables, each 256 entries of 4 bytes totals 4K which is not bad... */
 
-const int Cr_r_tab[(MAXJSAMPLE+1) * sizeof(int)] ={
+const unsigned int Cr_r_tab[(MAXJSAMPLE+1) * sizeof(unsigned int)] ={
   0xffffff4dUL, 0xffffff4eUL, 0xffffff4fUL, 0xffffff51UL, 0xffffff52UL, 0xffffff54UL, 
   0xffffff55UL, 0xffffff56UL, 0xffffff58UL, 0xffffff59UL, 0xffffff5bUL, 0xffffff5cUL, 
   0xffffff5dUL, 0xffffff5fUL, 0xffffff60UL, 0xffffff62UL, 0xffffff63UL, 0xffffff64UL, 
@@ -1075,7 +1075,7 @@ const int Cr_r_tab[(MAXJSAMPLE+1) * size
         0xaeUL,       0xafUL,       0xb1UL,       0xb2UL
   };
 
-const int Cb_b_tab[(MAXJSAMPLE+1) * sizeof(int)] ={
+const unsigned int Cb_b_tab[(MAXJSAMPLE+1) * sizeof(unsigned int)] ={
   0xffffff1dUL, 0xffffff1fUL, 0xffffff21UL, 0xffffff22UL, 0xffffff24UL, 0xffffff26UL, 
   0xffffff28UL, 0xffffff2aUL, 0xffffff2bUL, 0xffffff2dUL, 0xffffff2fUL, 0xffffff31UL, 
   0xffffff32UL, 0xffffff34UL, 0xffffff36UL, 0xffffff38UL, 0xffffff3aUL, 0xffffff3bUL, 
@@ -1121,7 +1121,7 @@ const int Cb_b_tab[(MAXJSAMPLE+1) * size
         0xdcUL,       0xdeUL,       0xdfUL,       0xe1UL
   };
 
-const int Cr_g_tab[(MAXJSAMPLE+1) * sizeof(int)] ={
+const unsigned int Cr_g_tab[(MAXJSAMPLE+1) * sizeof(unsigned int)] ={
     0x5b6900UL,   0x5ab22eUL,   0x59fb5cUL,   0x59448aUL,   0x588db8UL,   0x57d6e6UL, 
     0x572014UL,   0x566942UL,   0x55b270UL,   0x54fb9eUL,   0x5444ccUL,   0x538dfaUL, 
     0x52d728UL,   0x522056UL,   0x516984UL,   0x50b2b2UL,   0x4ffbe0UL,   0x4f450eUL, 
@@ -1167,7 +1167,7 @@ const int Cr_g_tab[(MAXJSAMPLE+1) * size
   0xffa77248UL, 0xffa6bb76UL, 0xffa604a4UL, 0xffa54dd2UL
  };
 
-const int Cb_g_tab[(MAXJSAMPLE+1) * sizeof(int)] ={
+const unsigned int Cb_g_tab[(MAXJSAMPLE+1) * sizeof(unsigned int)] ={
     0x2c8d00UL,   0x2c34e6UL,   0x2bdcccUL,   0x2b84b2UL,   0x2b2c98UL,   0x2ad47eUL, 
     0x2a7c64UL,   0x2a244aUL,   0x29cc30UL,   0x297416UL,   0x291bfcUL,   0x28c3e2UL, 
     0x286bc8UL,   0x2813aeUL,   0x27bb94UL,   0x27637aUL,   0x270b60UL,   0x26b346UL, 
@@ -1262,7 +1262,7 @@ ycc_rgb_convert_argb (j_decompress_ptr c
       /* Range-limiting is essential due to noise introduced by DCT losses. */
       outptr[col] = 0xFF000000 |
                     ( range_limit_y[Cr_r_tab[cr]] << 16 ) |
-                    ( range_limit_y[((int) RIGHT_SHIFT(Cb_g_tab[cb] + Cr_g_tab[cr], SCALEBITS))] << 8 ) |
+                    ( range_limit_y[(RIGHT_SHIFT(Cb_g_tab[cb] + Cr_g_tab[cr], SCALEBITS))] << 8 ) |
                     ( range_limit_y[Cb_b_tab[cb]] );
     }
   }
openSUSE Build Service is sponsored by