[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OpenDivX] Small things in code...



I'm testing a little on IRIX at the moment and since the compiler
prints stuff like this automatically, I just attached the list of 
"unused" and "set but unused" variables, portability problems (e.g.
nested comments) etc. for the current version of OpenDivX (CVS, May 18th, 15:20)

If you don't need it, just ignore.

gruel

-- 
Dipl. math. Christoph Lampert (complex analysis, integral formulae)
Email: [email protected]                |     Email: [email protected]
basic_prediction.c:
clearblock.c:
debug.c:
decore.c:
cc-1174 cc: WARNING File = decore.c, Line = 74
  The variable "flag_firstpicture" was declared but never referenced.

  static int flag_firstpicture = 1;
             ^

gen_draw.c:
gen_usetime.c:
cc-1005 cc: ERROR File = gen_usetime.c, Line = 3
  The source file "windows.h" is unavailable.

  #include <windows.h>
                      ^

1 catastrophic error detected in the compilation of "gen_usetime.c".
Compilation terminated.
getbits.c:
idct.c:
mp4_block.c:
mp4_decoder.c:
mp4_header.c:
mp4_iquant.c:
mp4_mblock.c:
mp4_picture.c:
cc-1001 cc: WARNING File = transferIDCT.h, Line = 65
  The source file does not end with a new-line character.

  #endif // _TRANSFERIDCT_H_
                            ^

mp4_predict.c:
cc-1174 cc: WARNING File = mp4_predict.c, Line = 117
  The variable "saiAcLeftIndex" was declared but never referenced.

  static int saiAcLeftIndex[8] = 
             ^

mp4_recon.c:
mp4_tables.c:
mp4_vars.c:
mp4_vld.c:
postprocess.c:
cc-1014 cc: WARNING File = postprocess.c, Line = 217
  Invalid characters appear before a new-line in the preprocessor directive.

                #endif;
                      ^

cc-1552 cc: WARNING File = postprocess.c, Line = 572
  The variable "QPx16" is set but never used.

        int QP, QPx16;
                ^

cc-1552 cc: WARNING File = postprocess.c, Line = 657
  The variable "range" is set but never used.

        uint8_t min, max, thr, range;
                               ^

store.c:
cc-1037 cc: ERROR File = store.c, Line = 40
  A "#endif" directive is missing from the source file.

  #ifndef _DECORE
   ^

1 error detected in the compilation of "store.c".
transferIDCT.c:
yuv2rgb.c:
ar: Warning: creating libdecore_sgi.a

> ./COMPILE_IRIX
basic_prediction.c:
clearblock.c:
debug.c:
decore.c:
cc-1174 cc: WARNING File = decore.c, Line = 74
  The variable "flag_firstpicture" was declared but never referenced.

  static int flag_firstpicture = 1;
             ^

gen_draw.c:
gen_usetime.c:
cc-1005 cc: ERROR File = gen_usetime.c, Line = 3
  The source file "windows.h" is unavailable.

  #include <windows.h>
                      ^

1 catastrophic error detected in the compilation of "gen_usetime.c".
Compilation terminated.
getbits.c:
idct.c:
mp4_block.c:
cc-1171 cc: WARNING File = mp4_block.c, Line = 166
  The indicated expression has no effect.

                _Error("Error: MPEG-2 inverse quantization NOT implemented\n");
                      ^

mp4_decoder.c:
cc-1047 cc: WARNING File = /usr/include/sys/fcntl.h, Line = 60
  Macro "O_RDONLY" has an incompatible redefinition.

  #define       O_RDONLY        0
                ^

mp4_header.c:
cc-1171 cc: WARNING File = mp4_header.c, Line = 251
  The indicated expression has no effect.

                _Print("Vop start_code NOT found\n");
                      ^

mp4_iquant.c:
mp4_mblock.c:
mp4_picture.c:
cc-1001 cc: WARNING File = transferIDCT.h, Line = 65
  The source file does not end with a new-line character.

  #endif // _TRANSFERIDCT_H_
                            ^

mp4_predict.c:
cc-1174 cc: WARNING File = mp4_predict.c, Line = 117
  The variable "saiAcLeftIndex" was declared but never referenced.

  static int saiAcLeftIndex[8] = 
             ^

mp4_recon.c:
mp4_tables.c:
mp4_vars.c:
mp4_vld.c:
postprocess.c:
cc-1014 cc: WARNING File = postprocess.c, Line = 217
  Invalid characters appear before a new-line in the preprocessor directive.

                #endif;
                      ^

cc-1552 cc: WARNING File = postprocess.c, Line = 572
  The variable "QPx16" is set but never used.

        int QP, QPx16;
                ^

cc-1552 cc: WARNING File = postprocess.c, Line = 657
  The variable "range" is set but never used.

        uint8_t min, max, thr, range;
                               ^

store.c:

************** Somehow there last #endif if not detected, 
************** wrong character at end of line?
  #endif
        ^

transferIDCT.c:
yuv2rgb.c:
bitstream.c:
encore.c:
cc-1552 cc: WARNING File = encore.c, Line = 93
  The variable "size" is set but never used.

        int x_dim, y_dim, size, length;
                          ^

cc-1552 cc: WARNING File = encore.c, Line = 94
  The variable "headerbits" is set but never used.

        int headerbits = 0;
            ^

mom_access.c:
mom_util.c:
cc-1174 cc: WARNING File = mom_util.c, Line = 203
  The variable "sx_out" was declared but never referenced.

                sx_out = image_out->x,
                ^

cc-1174 cc: WARNING File = mom_util.c, Line = 205
  The variable "sy_out" was declared but never referenced.

                sy_out = image_out->y,
                ^

cc-1174 cc: WARNING File = mom_util.c, Line = 234
  The variable "sx_out" was declared but never referenced.

                sx_out = image_out->x,
                ^

cc-1174 cc: WARNING File = mom_util.c, Line = 236
  The variable "sy_out" was declared but never referenced.

                sy_out = image_out->y,
                ^

cc-1174 cc: WARNING File = mom_util.c, Line = 385
  The variable "sx_in1" was declared but never referenced.

    UInt        sx_in1 = image_in1->x,
                ^

cc-1174 cc: WARNING File = mom_util.c, Line = 386
  The variable "sx_in2" was declared but never referenced.

                sx_in2 = image_in2->x,
                ^

cc-1174 cc: WARNING File = mom_util.c, Line = 388
  The variable "sy_in1" was declared but never referenced.

                sy_in1 = image_in1->y,
                ^

cc-1174 cc: WARNING File = mom_util.c, Line = 389
  The variable "sy_in2" was declared but never referenced.

                sy_in2 = image_in2->y,
                ^

cc-1174 cc: WARNING File = mom_util.c, Line = 419
  The variable "sx_in1" was declared but never referenced.

    UInt        sx_in1 = image_in1->x,
                ^

cc-1174 cc: WARNING File = mom_util.c, Line = 420
  The variable "sx_in2" was declared but never referenced.

                sx_in2 = image_in2->x,
                ^

cc-1174 cc: WARNING File = mom_util.c, Line = 422
  The variable "sy_in1" was declared but never referenced.

                sy_in1 = image_in1->y,
                ^

cc-1174 cc: WARNING File = mom_util.c, Line = 423
  The variable "sy_in2" was declared but never referenced.

                sy_in2 = image_in2->y,
                ^

mot_code.c:
cc-1552 cc: WARNING File = mot_code.c, Line = 119
  The variable "pa" is set but never used.

                SInt    *pa;                                                      /* Alpha                     */
                         ^

cc-1552 cc: WARNING File = mot_code.c, Line = 120
  The variable "mode" is set but never used.

                Int     mode;
                        ^

cc-1009 cc: WARNING File = mot_code.c, Line = 453
  A "/*" appears inside a comment.

                        /* left block/MB is transparent *
                        ^

cc-1009 cc: WARNING File = mot_code.c, Line = 463
  A "/*" appears inside a comment.

                        /* top block/MB is transparent *
                        ^

cc-1009 cc: WARNING File = mot_code.c, Line = 472
  A "/*" appears inside a comment.

                        /* right & top border *
                        ^

cc-1009 cc: WARNING File = mot_code.c, Line = 473
  A "/*" appears inside a comment.

                        /* right block/MB is transparent *
                        ^

mot_est_comp.c:
cc-1552 cc: WARNING File = mot_est_comp.c, Line = 294
  The variable "imas_h" is set but never used.

        Int             imas_w, imas_h, Mode;
                                ^

mot_est_mb.c:
cc-1552 cc: WARNING File = mot_est_mb.c, Line = 337
  The variable "hb" is set but never used.

        Int     hb,vb;
                ^

cc-1552 cc: WARNING File = mot_est_mb.c, Line = 337
  The variable "vb" is set but never used.

        Int     hb,vb;
                   ^

mot_util.c:
putvlc.c:
cc-1174 cc: WARNING File = putvlc.c, Line = 170
  The variable "index" was declared but never referenced.

        Int index=0;
            ^

rate_ctl.c:
text_bits.c:
text_code.c:
cc-1552 cc: WARNING File = text_code.c, Line = 119
  The variable "CBPC" is set but never used.

        Int CBPY, CBPC;
                  ^

cc-1552 cc: WARNING File = text_code.c, Line = 294
  The variable "CBPC" is set but never used.

        Int CBPY, CBPC;
                  ^

text_code_mb.c:
text_dct.c:
vop_code.c:
cc-1174 cc: WARNING File = vop_code.c, Line = 92
  The variable "error_vop" was declared but never referenced.

        Vop       *error_vop=NULL;
                   ^

cc-1174 cc: WARNING File = vop_code.c, Line = 223
  The variable "buffer" was declared but never referenced.

        Image *buffer = NULL;
               ^


Reply To Poster

Local References / HOW-TO / FAQs