]> Creatis software - gdcm.git/commitdiff
COMP: Remove compiler warnings using gcc
authormalaterre <malaterre>
Sat, 21 May 2005 01:44:33 +0000 (01:44 +0000)
committermalaterre <malaterre>
Sat, 21 May 2005 01:44:33 +0000 (01:44 +0000)
src/gdcmmpeg2/src/mpeg2dec/getbits.c
src/gdcmmpeg2/src/mpeg2dec/getblk.c
src/gdcmmpeg2/src/mpeg2dec/gethdr.c
src/gdcmmpeg2/src/mpeg2dec/getpic.c
src/gdcmmpeg2/src/mpeg2dec/getvlc.c
src/gdcmmpeg2/src/mpeg2dec/mpeg2dec.c
src/gdcmmpeg2/src/mpeg2dec/spatscal.c
src/gdcmmpeg2/src/mpeg2dec/store.c
src/gdcmmpeg2/src/mpeg2dec/subspic.c

index 9b9b593cb3214afd57217877584d51f439d226e2..e36f6104c2e72918e89ac69d4e99bd89bed63acd 100644 (file)
@@ -34,6 +34,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <unistd.h> // for read
 
 #include "config.h"
 #include "global.h"
index ffde10dd2d072953347b60b0100c47b0eb086a29..d451a179aa361612e1df8c436d5f0a14244924ec 100644 (file)
@@ -264,10 +264,12 @@ int dc_dct_pred[];
   bp = ld1->block[comp];
 
   if (base.scalable_mode==SC_DP)
+    {
     if (base.priority_breakpoint<64)
       ld = &enhan;
     else
       ld = &base;
+    }
 
   cc = (comp<4) ? 0 : (comp&1)+1;
 
@@ -435,10 +437,12 @@ int comp;
   bp = ld1->block[comp];
 
   if (base.scalable_mode==SC_DP)
+    {
     if (base.priority_breakpoint<64)
       ld = &enhan;
     else
       ld = &base;
+    }
 
   qmat = (comp<4 || chroma_format==CHROMA420)
          ? ld1->non_intra_quantizer_matrix
index 4155ec559e2c88097f386ebe8c26147107e10a7b..c3af94cfcb11d86f00f128a4c85313fa336c9267 100644 (file)
@@ -458,7 +458,7 @@ static void sequence_extension()
   int vertical_size_extension;
   int bit_rate_extension;
   int vbv_buffer_size_extension;
-  int pos;
+  int pos;(void)pos;
 
   /* derive bit position for trace */
 #ifdef VERBOSE
@@ -966,6 +966,7 @@ void marker_bit(text)
 char *text;
 {
   int marker;
+  (void)text;
 
   marker = Get_Bits(1);
 
index d75b574b816c445ccfb7aa6fe59e5db3c8d727aa..8cfda605fe43742655375d09429b919a29bbfbd9 100644 (file)
@@ -150,6 +150,7 @@ int framenum, MBAmax;
   int stwtype, stwclass;
   int SNRMBA, SNRMBAinc;
   int ret;
+  (void)framenum;
 
   MBA = 0; /* macroblock address */
   MBAinc = 0;
@@ -911,6 +912,7 @@ int PMV[2][2][2];
 {
   unsigned int code;
   int slice_vert_pos_ext;
+  (void)MBAmax;
 
   ld = &base;
 
index 0b019246a615979736adb9d61a0407476330e647..ff18191b67605646db003da4ae4feea9fc940615 100644 (file)
@@ -108,6 +108,7 @@ static int Get_I_macroblock_type()
   return 17;
 }
 
+#ifdef TRACE
 static char *MBdescr[]={
   "",                  "Intra",        "No MC, Coded",         "",
   "Bwd, Not Coded",    "",             "Bwd, Coded",           "",
@@ -118,6 +119,7 @@ static char *MBdescr[]={
   "",                  "",             "Fwd, Coded, Quant",    "",
   "",                  "",             "Interp, Coded, Quant", ""
 };
+#endif /* TRACE */
 
 static int Get_P_macroblock_type()
 {
@@ -347,7 +349,7 @@ static int Get_SNR_macroblock_type()
 #ifdef TRACE    /* *CH* */
   if (Trace_Flag)
     printf("macroblock_type(SNR) (");
-#endif TRACE
+#endif /* TRACE */
 
   code = Show_Bits(3);
 
@@ -367,7 +369,7 @@ static int Get_SNR_macroblock_type()
     Print_Bits(code,3,SNRMBtab[code].len);
     printf("): %s (%d)\n",MBdescr[(int)SNRMBtab[code].val],SNRMBtab[code].val);
   }
-#endif TRACE
+#endif /* TRACE */
 
 
   return SNRMBtab[code].val;
index cb21376008f3f6a64f77a4fdcb27439e12b75801..09a4ae27cf80fa646f5bba04db445eb56306be73 100644 (file)
@@ -32,6 +32,7 @@
 #include <stdlib.h>
 #include <ctype.h>
 #include <fcntl.h>
+#include <unistd.h> // for lseek
 
 #define GLOBAL
 #include "config.h"
index 55d26f24a7cb466238278408098f76abe00a61cc..94557677d402a5e44685b2206ea946ce0de6640c 100644 (file)
@@ -1,5 +1,7 @@
 
 #include <stdio.h>
+#include <string.h> // for strcat
+#include <stdlib.h> // for exit
 #include "config.h"
 #include "global.h"
 
@@ -92,7 +94,7 @@ static void Read_Lower_Layer_Component_Framewise(comp,lw,lh)
 #ifdef VERBOSE
   if (Verbose_Flag>1)
     printf("reading %s\n",fname);
-#endif VERBOSE
+#endif /* VERBOSE */
   fd=fopen(fname,"rb");
   if (fd==NULL) exit(-1);
   for (j=0; j<lh; j++) {
@@ -123,7 +125,7 @@ static void Read_Lower_Layer_Component_Fieldwise(comp,lw,lh)
 #ifdef VERBOSE
   if (Verbose_Flag>1)
     printf("reading %s\n",fname);
-#endif VERBOSE
+#endif /* VERBOSE */
   fd=fopen(fname,"rb");
   if (fd==NULL) exit(-1);
   for (j=0; j<lh; j+=lower_layer_progressive_frame?1:2)
@@ -137,7 +139,7 @@ static void Read_Lower_Layer_Component_Fieldwise(comp,lw,lh)
 #ifdef VERBOSE
     if (Verbose_Flag>1)
       printf("reading %s\n",fname);
-#endif VERBOSE
+#endif /* VERBOSE */
     fd=fopen(fname,"rb");
     if (fd==NULL) exit(-1);
     for (j=1; j<lh; j+=2)
index 8867416a942f9901a08a0d1ca0c4c11b66def477..628938bf29a1b3c0023633998c3d739ec1d31ea4 100644 (file)
@@ -30,6 +30,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
+#include <unistd.h> // for write
+#include <string.h> // for strcat
 
 #include "config.h"
 #include "global.h"
index 67bb555dfce773a5018293a69c0e142ae377e96e..70f68b77672a4ad6f26077b23460b662c50ec7f3 100644 (file)
@@ -31,6 +31,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
+#include <unistd.h> // for read
 
 #include "config.h"
 #include "global.h"