فهرست منبع

HPCC-14578 Fix jlib warnings

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 9 سال پیش
والد
کامیت
5b4dba6f46
5فایلهای تغییر یافته به همراه9 افزوده شده و 9 حذف شده
  1. 3 3
      system/jlib/jlzw.cpp
  2. 3 3
      system/lzma/CMakeLists.txt
  3. 1 1
      system/lzma/LzFind.c
  4. 1 1
      system/lzma/LzmaDec.c
  5. 1 1
      system/lzma/LzmaEnc.c

+ 3 - 3
system/jlib/jlzw.cpp

@@ -173,8 +173,8 @@ static struct __initShiftArray {
 
 #define PUTCODE(code)                                       \
 {                                                            \
-  register unsigned inbits=code;                             \
-  register int shift=curShift;                               \
+  unsigned inbits=code;                                      \
+  int shift=curShift;                                        \
   int copyBits = dict.curbits - BITS_PER_UNIT;               \
                                                              \
   *(outbytes++) = (unsigned char)(inbits&0xff);              \
@@ -482,7 +482,7 @@ void CLZWExpander::expand(void *buf)
     unsigned char *outend = out+outlen;
     int oldcode ;
     GETCODE(oldcode);
-    register int ch=oldcode;
+    int ch=oldcode;
     *(out++)=(unsigned char)ch;
     while (out!=outend) {
         int newcode;

+ 3 - 3
system/lzma/CMakeLists.txt

@@ -26,9 +26,9 @@
 project( lzma ) 
 
 set ( SRCS
-        LzFind.c
-        LzmaDec.c
-        LzmaEnc.c
+        LzFind.cpp
+        LzmaDec.cpp
+        LzmaEnc.cpp
 )
 
 ADD_DEFINITIONS( -D_LIB )

+ 1 - 1
system/lzma/LzFind.c

@@ -1,4 +1,4 @@
-/* LzFind.c -- Match finder for LZ algorithms
+/* LzFind.cpp -- Match finder for LZ algorithms
 2008-10-04 : Igor Pavlov : Public domain */
 
 #include <string.h>

+ 1 - 1
system/lzma/LzmaDec.c

@@ -1,4 +1,4 @@
-/* LzmaDec.c -- LZMA Decoder
+/* LzmaDec.cpp -- LZMA Decoder
 2008-11-06 : Igor Pavlov : Public domain */
 
 #include "LzmaDec.h"

+ 1 - 1
system/lzma/LzmaEnc.c

@@ -1,4 +1,4 @@
-/* LzmaEnc.c -- LZMA Encoder
+/* LzmaEnc.cpp -- LZMA Encoder
 2009-02-02 : Igor Pavlov : Public domain */
 
 #include <string.h>