File source-warns.dif of Package texlive-bin

--- libs/icu/icu-4.4/i18n/decNumber.h
+++ libs/icu/icu-4.4/i18n/decNumber.h	2010-11-16 10:35:01.943925533 +0000
@@ -54,26 +54,30 @@
   /* For ICU, use one digit per byte, to make it easier to emulate the
    * old DigitList interface on top of a decNumber
    */
-  #define DECDPUN 1           /* DECimal Digits Per UNit [must be >0  */
+  #define DECDPUN 3           /* DECimal Digits Per UNit [must be >0  */
                               /* and <10; 3 or powers of 2 are best]. */
 
-  /* DECNUMDIGITS is the default number of digits that can be held in */
-  /* the structure.  If undefined, 1 is assumed and it is assumed     */
-  /* that the structure will be immediately followed by extra space,  */
-  /* as required.  DECNUMDIGITS is always >0.                         */
-  #if !defined(DECNUMDIGITS)
-    #define DECNUMDIGITS 1
-  #endif
-
   /* The size (integer data type) of each unit is determined by the   */
   /* number of digits it will hold.                                   */
   #if   DECDPUN<=2
     #define decNumberUnit uint8_t
+    #define DECNUMDIGITS 3
   #elif DECDPUN<=4
     #define decNumberUnit uint16_t
+    #define DECNUMDIGITS 2
   #else
     #define decNumberUnit uint32_t
+    #define DECNUMDIGITS 1
   #endif
+
+  /* DECNUMDIGITS is the default number of digits that can be held in */
+  /* the structure.  If undefined, 1 is assumed and it is assumed     */
+  /* that the structure will be immediately followed by extra space,  */
+  /* as required.  DECNUMDIGITS is always >0.                         */
+  #if !defined(DECNUMDIGITS)
+    #define DECNUMDIGITS 1
+  #endif
+
   /* The number of units needed is ceil(DECNUMDIGITS/DECDPUN)         */
   #define DECNUMUNITS ((DECNUMDIGITS+DECDPUN-1)/DECDPUN)
 
--- libs/icu/icu-4.4/i18n/decnumstr.cpp
+++ libs/icu/icu-4.4/i18n/decnumstr.cpp	2010-11-16 10:38:14.859926653 +0000
@@ -70,7 +70,7 @@ void DecimalNumberString::setLength(int3
         return;
     }
     if (length > fLength) {
-        uprv_memset(&fText[fLength], length - fLength, 0);
+        uprv_memset(&fText[fLength], 0, length - fLength);
     }
     fLength = length;
     fText[fLength] = 0;
--- libs/icu/icu-4.4/tools/pkgdata/pkgdata.cpp
+++ libs/icu/icu-4.4/tools/pkgdata/pkgdata.cpp	2010-11-16 10:43:54.739926722 +0000
@@ -1595,8 +1595,8 @@ static void loadLists(UPKGOptions *o, UE
     /* #1 try the same path where pkgdata was called from. */
     findDirname(progname, cmdBuf, 1024, &status);
     if(U_SUCCESS(status)) {
-      uprv_strncat(cmdBuf, U_FILE_SEP_STRING, 1024);
-      uprv_strncat(cmdBuf, cmd, 1024);
+      uprv_strncat(cmdBuf, U_FILE_SEP_STRING, strlen(U_FILE_SEP_STRING));
+      uprv_strncat(cmdBuf, cmd, strlen(cmd));
       
       if(verbose) {
         fprintf(stdout, "# Calling icu-config: %s\n", cmdBuf);
--- libs/teckit/TECkit-2.5.1/source/Compiler.cpp
+++ libs/teckit/TECkit-2.5.1/source/Compiler.cpp	2009-08-28 15:16:33.150401373 +0000
@@ -1451,13 +1451,16 @@ Compiler::Compiler(const char* txt, UInt
 				if (dest != 0) {
 					int	result = compress2(dest + 8, &destLen, compiledTable, compiledSize, Z_BEST_COMPRESSION);
 					if (result == Z_OK) {
-						destLen += 8;
-						dest = (Byte*)realloc(dest, destLen); // shrink dest to fit
-						WRITE(((FileHeader*)dest)->type, kMagicNumberCmp);
-						WRITE(((FileHeader*)dest)->version, compiledSize);
-						free(compiledTable);
-						compiledTable = dest;
-						compiledSize = destLen;
+						if ((dest = (Byte*)realloc(dest, destLen+8)) != NULL) {
+							destLen += 8;
+							WRITE(((FileHeader*)dest)->type, kMagicNumberCmp);
+							WRITE(((FileHeader*)dest)->version, compiledSize);
+							free(compiledTable);
+							compiledTable = dest;
+							compiledSize = destLen;
+						}
+						else
+							free(dest);
 					}
 					else
 						free(dest);
--- texk/makeindexk/genind.h
+++ texk/makeindexk/genind.h	2009-08-28 15:18:03.265996790 +0000
@@ -25,6 +25,20 @@
  *
  */
 
+#ifndef __has_idx_printf
+#define __has_idx_printf
+#include <stdarg.h>
+static __inline__ int idx_printf(FILE *stream, const char *format, ...)
+{
+    int ret;
+    va_list ap;
+    va_start(ap, format);
+    ret = vfprintf(stream, format, ap);
+    va_end(ap);
+    return ret;
+}
+#endif
+
 #define IND_ERROR(F) { \
     if (idx_dot) { \
 	fprintf(ilg_fp, "\n"); \
@@ -45,7 +59,7 @@
     fprintf(ilg_fp, \
     "## Warning (input = %s, line = %d; output = %s, line = %d):\n   -- ", \
 	    curr->fn, curr->lc, ind_fn, ind_lc+1); \
-    fprintf(ilg_fp, F, D); \
+    idx_printf(ilg_fp, F, D); \
     ind_ec++; \
 }
 
--- texk/makeindexk/mkind.h
+++ texk/makeindexk/mkind.h	2009-08-28 15:20:12.530403291 +0000
@@ -244,6 +244,20 @@
 #define STREQ(A, B)  (strcmp(A, B) == 0)
 #define STRNEQ(A, B) (strcmp(A, B) != 0)
 
+#ifndef __has_idx_printf
+#define __has_idx_printf
+#include <stdarg.h>
+static __inline__ int idx_printf(FILE *stream, const char *format, ...)
+{
+    int ret;
+    va_list ap;
+    va_start(ap, format);
+    ret = vfprintf(stream, format, ap);
+    va_end(ap);
+    return ret;
+}
+#endif
+
 #define MESSAGE(F) { \
     if (verbose) \
 	fprintf(stderr, F); \
@@ -252,8 +266,8 @@
 
 #define MESSAGE1(F, S) { \
     if (verbose) \
-	fprintf(stderr, F, S); \
-    fprintf(ilg_fp, F, S); \
+	idx_printf(stderr, F, S); \
+    idx_printf(ilg_fp, F, S); \
 }
 
 #if USE_KPATHSEA /* kpathsea defines a different FATAL */
@@ -271,7 +285,7 @@
 #endif
 
 #define FATAL1(F, S) { \
-    fprintf(stderr, F, S); \
+    idx_printf(stderr, F, S); \
     fprintf(stderr, USAGE, pgm_fn); \
     EXIT(1); \
 }
--- texk/makeindexk/scanid.h
+++ texk/makeindexk/scanid.h	2009-08-28 15:21:10.426401166 +0000
@@ -112,6 +112,20 @@
     idx_ec++; \
 }
 
+#ifndef __has_idx_printf
+#define __has_idx_printf
+#include <stdarg.h>
+static __inline__ int idx_printf(FILE *stream, const char *format, ...)
+{
+    int ret;
+    va_list ap;
+    va_start(ap, format);
+    ret = vfprintf(stream, format, ap);
+    va_end(ap);
+    return ret;
+}
+#endif
+
 #define IDX_ERROR1(F, D) { \
     if (idx_dot) { \
 	fprintf(ilg_fp, "\n"); \
@@ -119,7 +133,7 @@
     } \
     fprintf(ilg_fp, "!! Input index error (file = %s, line = %d):\n   -- ", \
 	    idx_fn, idx_lc); \
-    fprintf(ilg_fp, F, D); \
+    idx_printf(ilg_fp, F, D); \
     idx_ec++; \
 }
 
--- texk/makeindexk/scanst.h
+++ texk/makeindexk/scanst.h	2009-08-28 15:21:39.385901445 +0000
@@ -157,6 +157,20 @@
     put_dot = FALSE; \
 }
 
+#ifndef __has_idx_printf
+#define __has_idx_printf
+#include <stdarg.h>
+static __inline__ int idx_printf(FILE *stream, const char *format, ...)
+{
+    int ret;
+    va_list ap;
+    va_start(ap, format);
+    ret = vfprintf(stream, format, ap);
+    va_end(ap);
+    return ret;
+}
+#endif
+
 #define STY_ERROR1(F, D) { \
     if (idx_dot) { \
 	fprintf(ilg_fp, "\n"); \
@@ -164,7 +178,7 @@
     } \
     fprintf(ilg_fp, "** Input style error (file = %s, line = %d):\n   -- ", \
 	    sty_fn, sty_lc); \
-    fprintf(ilg_fp, F, D); \
+    idx_printf(ilg_fp, F, D); \
     sty_ec++; \
     put_dot = FALSE; \
 }
--- texk/ps2pkm/t1funcs.c
+++ texk/ps2pkm/t1funcs.c	2010-05-18 09:19:06.606924884 +0000
@@ -242,7 +242,7 @@ int Type1OpenScalable (ev, ppFont, flags
                else {
                        h = w = 0;
                        area->xmin = area->xmax = 0;
-                       area->ymax = area->ymax = 0;
+                       area->ymin = area->ymax = 0;
                }
  
                glyphs[i].metrics.leftSideBearing  = area->xmin;
--- texk/ps2pkm/token.c
+++ texk/ps2pkm/token.c	2009-08-28 15:16:33.266401964 +0000
@@ -108,7 +108,7 @@ static DOUBLE P10(exponent)
   if (exponent < 0) {
     power = 0.1;
     value = (exponent & 1 ? power : 1.0);
-    exponent = -(++exponent >> 1); /* portable C for -(exponent/2) */
+    exponent = -((exponent+1) >> 1); /* portable C for -(exponent/2) */
   }
   else {
     power = 10.0;
--- texk/ps2pkm/type1.c
+++ texk/ps2pkm/type1.c	2009-08-28 15:16:33.274401573 +0000
@@ -110,11 +110,11 @@ typedef struct xobject xobject;
 static DOUBLE tmpx;  /* Store macro argument in tmpx to avoid re-evaluation */
 static LONG tmpi;    /* Store converted value in tmpi to avoid re-evaluation */
  
-#define FABS(x) (((tmpx = (x)) < 0.0) ? -tmpx : tmpx)
+#define FABS(x) ({ tmpx = (x); (tmpx < 0.0) ? -tmpx : tmpx; })
  
-#define CEIL(x) (((tmpi = (LONG) (tmpx = (x))) < tmpx) ? ++tmpi : tmpi)
+#define CEIL(x) ({ tmpi = (LONG) (tmpx = (x)); (tmpi < tmpx) ? ++tmpi : tmpi; })
  
-#define FLOOR(x) (((tmpi = (LONG) (tmpx = (x))) > tmpx) ? --tmpi : tmpi)
+#define FLOOR(x) ({ tmpi = (LONG) (tmpx = (x)); (tmpi > tmpx) ? --tmpi : tmpi; })
  
 #define ROUND(x) FLOOR((x) + 0.5)
  
--- texk/web2c/luatexdir/pdf/pdfcolorstack.w
+++ texk/web2c/luatexdir/pdf/pdfcolorstack.w	2010-11-16 10:46:58.863925991 +0000
@@ -207,8 +207,7 @@ static int colorstackpush(int colstack_n
     if (page_mode) {
         if (colstack->page_used == colstack->page_size) {
             colstack->page_size += STACK_INCREMENT;
-            colstack->page_stack = xretalloc(colstack->page_stack,
-                                             (unsigned) colstack->page_size,
+            xretalloc(colstack->page_stack, (unsigned) colstack->page_size,
                                              char *);
         }
         colstack->page_stack[colstack->page_used++] = colstack->page_current;
@@ -222,8 +221,7 @@ static int colorstackpush(int colstack_n
     } else {
         if (colstack->form_used == colstack->form_size) {
             colstack->form_size += STACK_INCREMENT;
-            colstack->form_stack = xretalloc(colstack->form_stack,
-                                             (unsigned) colstack->form_size,
+            xretalloc(colstack->form_stack, (unsigned) colstack->form_size,
                                              char *);
         }
         colstack->form_stack[colstack->form_used++] = colstack->form_current;
openSUSE Build Service is sponsored by