Warnings

From: Henning Meier-Geinitz (hmg-ml@gmx.de)
Date: Mon Oct 30 2000 - 12:46:16 PST

  • Next message: Oliver Rauch: "Re: configure --without-x"

    Hi,

    here are some statistics about the compiler warnings of the SANE
    package. Current CVS, --enable-warnings, gcc 2.95.2, Debian 2.2 i386.
    Yes, I know, not all of these warnings are sensible.

    ./configure; make

    803 warnings altogether

    List sorted by type of warning
        291 unused parameter
        242 cast discards qualifiers from pointer target type
         74 pointer targets in passing arg ? of differ in signedness
         70 comparison between signed and unsigned
         65 pointer targets in initialization differ in signedness
         12 function declaration isn't a prototype
          6 unused variable
          6 passing arg 1 of ? discards qualifiers from pointer target type
          6 overflow in implicit constant conversion
          6 ANSI C forbids an empty source file
          4 ? might be used uninitialized in this function
          4 ? defined but not used
          4 ANSI C does not allow extra `;' outside of a function
          2 pointer targets in assignment differ in signedness
          2 missing initializer
          2 implicit declaration of function
          2 passing arg ? of ? from incompatible pointer type
          1 suggest explicit braces to avoid ambiguous
          1 ? redefined
          1 pointer targets in passing arg 4 of pointer to function differ in signedness
          1 comma at end of enumerator list
          1 1 trigraph(s) encountered

    List sorted by filename
        152 microtek2.c
         65 coolscan.c
         55 hp-option.c
         34 xscanimage.c
         31 xcam.c
         30 mustek_pp.c
         24 sp15c.c
         21 m3096g.c
         20 microtek.c
         19 sp15c-scsi.h
         18 coolscan-scsidef.h
         17 m3096g-scsi.h
         17 dmc.c
         17 dc210.c
         16 gtkglue.c
         16 dc25.c
         15 st400.c
         15 sharp.c
         15 saned.c
         15 epson.c
         12 s9036.c
         12 preview.c
         11 sanei_wire.c
         11 canon-sane.c
         10 djpeg.c
         10 abaton.c
          9 qcam.c
          9 apple.c
          9 agfafocus.c
          8 tamarack.c
          8 ricoh.c
          7 net.c
          7 dll.c
          6 ricoh.h
          6 avision.c
          5 sanei_scsi.c
          5 sanei_save_values.c
          5 artec.c
          4 hp-device.c
          4 hp-accessor.c
          4 canon.c
          3 preferences.c
          3 plustek.c
          2 v4l.c
          2 scanimage.c
          2 progress.c
          2 hp-scl.c
          2 hp.c
          2 dll-preload.c
          2 canon-scsi.c
          1 /usr/include/bits/fcntl.h
          1 usleep.c
          1 umax.c
          1 strndup.c
          1 snprintf.c
          1 snapscan.c
          1 ricoh-scsi.c
          1 isfdtype.c
          1 ../include/sane/sanei_backend.h
          1 ../include/getopt.h
          1 getenv.c
          1 alloca.c

    Even with "--disable-warnings" there are 392 warnings.
    We can do better than this, can't we :-)

    Bye,
      Henning

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Mon Oct 30 2000 - 12:41:45 PST