#6 Warnings while compiling load_config.cpp

closed-fixed
Daler
1
2001-05-21
2001-05-04
Jimmy Kaplowitz
No

Hi. In compiling althea 0.4.3, I get the following
warnings. I am using g++ version 2.95.4 on a reasonably
current Debian GNU/Linux unstable system, which has
GTK+ 1.2.10 installed. This does not prevent me from
compiling, and the resulting program seems to work, but
adding some default cases to the switch statements
could prevent some potential crashes (maybe ??), is
good practice, and is easy.

- Jimmy Kaplowitz
jimmy (at) kaplowitz (dot) org

---
g++ -Wall -ftemplate-depth-30 -c load_config.cpp
`gtk-config --cflags`
load_config.cpp: In function `int load_Althea()':
load_config.cpp:97: warning: enumeration value `EXPERT'
not handled in switch
load_config.cpp:97: warning: enumeration value `CACHE'
not handled in switch
load_config.cpp:97: warning: enumeration value
`NOCOMMAND' not handled in switch
load_config.cpp:97: warning: enumeration value `NAME'
not handled in switch
load_config.cpp:97: warning: enumeration value
`SMTPSERVER' not handled in switch
load_config.cpp:97: warning: enumeration value
`IMAPSERVER' not handled in switch
load_config.cpp:97: warning: enumeration value
`IMAPPORT' not handled in switch
load_config.cpp:97: warning: enumeration value
`USERNAME' not handled in switch
load_config.cpp:97: warning: enumeration value
`PASSWORD' not handled in switch
load_config.cpp:97: warning: enumeration value
`MAILBOX' not handled in switch
load_config.cpp:97: warning: enumeration value
`FCCFOLDER' not handled in switch
load_config.cpp:97: warning: enumeration value
`SLASHSERVER' not handled in switch
load_config.cpp:97: warning: enumeration value
`SLASHFILTER' not handled in switch
load_config.cpp:97: warning: enumeration value
`FILTERFOLDER' not handled in switch
load_config.cpp:97: warning: enumeration value
`FILTERSTRING' not handled in switch
load_config.cpp:97: warning: enumeration value `FIELD'
not handled in switch
load_config.cpp:97: warning: enumeration value
`EMAILADDRESS' not handled in switch
load_config.cpp:97: warning: enumeration value
`CRYPTPASSWORD' not handled in switch
load_config.cpp:163: warning: enumeration value
`EXPERT' not handled in switch
load_config.cpp:163: warning: enumeration value `CACHE'
not handled in switch
load_config.cpp:163: warning: enumeration value
`NOCOMMAND' not handled in switch
load_config.cpp:163: warning: enumeration value `NAME'
not handled in switch
load_config.cpp:163: warning: enumeration value
`SMTPSERVER' not handled in switch
load_config.cpp:163: warning: enumeration value
`IMAPSERVER' not handled in switch
load_config.cpp:163: warning: enumeration value
`IMAPPORT' not handled in switch
load_config.cpp:163: warning: enumeration value
`USERNAME' not handled in switch
load_config.cpp:163: warning: enumeration value
`PASSWORD' not handled in switch
load_config.cpp:163: waning: enumeration value
`MAILBOX' not handled in switch
load_config.cpp:163: warning: enumeration value
`FCCFOLDER' not handled in switch
load_config.cpp:163: warning: enumeration value
`SLASHSERVER' not handled in switch
load_config.cpp:163: warning: enumeration value
`SLASHFILTER' not handled in switch
load_config.cpp:163: warning: enumeration value
`FILTERFOLDER' not handled in switch
load_config.cpp:163: warning: enumeration value
`FILTERSTRING' not handled in switch
load_config.cpp:163: warning: enumeration value `FIELD'
not handled in switch
load_config.cpp:163: warning: enumeration value
`EMAILADDRESS' not handled in switch
load_config.cpp:163: warning: enumeration value
`CRYPTPASSWORD' not handled in switch
load_config.cpp: In function `void
read_Server_XML(ifstream *, string *, string *, string
*, string *, string *, string *, string *,
string *, string *, bool *)':
load_config.cpp:688: warning: enumeration value
`SERVER' not handled in switch
load_config.cpp:688: warning: enumeration value
`EXPERT' not handled in switch
load_config.cpp:688: warning: enumeration value `CACHE'
not handled in switch
load_config.cpp:688: warning: enumeration value
`NOCOMMAND' not handled in switch
load_config.cpp:688: warning: enumeration value
`FILTER' not handled in switch
load_config.cpp:688: warning: enumeration value
`SLASHFILTER' not handled in switch
load_config.cpp:688: warning: enumeration value
`FILTERFOLDER' not handled in switch
load_config.cpp:688: warning: enumeration value
`FILTERSTRING' not handled in switch
load_config.cpp:688: warning: enumeration value `FIELD'
not handled in switch
load_config.cpp: In function `void
read_Filter_XML(ifstream *, string *, string *, string
*, bool *)':
load_config.cpp:806: warning: enumeration value
`SERVER' not handled in switch
load_config.cpp:806: warning: enumeration value
`EXPERT' not handled in switch
load_config.cpp:806: warning: enumeration value `CACHE'
not handled in switch
load_config.cpp:806: warning: enumeration value
`NOCOMMAND' not handled in switch
load_config.cpp:806: warning: enumeration value
`FILTER' not handled in switch
load_config.cpp:806: warning: enumeration value `NAME'
not handled in switch
load_config.cpp:806: warning: enumeration value
`SMTPSERVER' not handled in switch
load_config.cpp:806: warning: enumeration value
`IMAPSERVER' not handled in switch
load_config.cpp:806: warning: enumeration value
`IMAPPORT' not handled in switch
load_config.cpp:806: warning: enumeration value
`USERNAME' not handled in switch
load_config.cpp:806: warning: enumeration value
`PASSWORD' not handled in switch
load_config.cpp:806: warning: enumeration value
`MAILBOX' not handled in switch
load_config.cpp:806: warning: enumeration value
`FCCFOLDER' not handled in switch
load_config.cpp:806: warning: enumeration value
`SLASHSERVER' not handled in switch
load_config.cpp:806: warning: enumeration value
`EMAILADDRESS' not handled in switch
load_config.cpp:806: warning: enumeration value
`CRYPTPASSWORD' not handled in switch

Discussion

  • Ethan Sommer
    Ethan Sommer
    2001-05-05

    • priority: 5 --> 1
     
  • Daler
    Daler
    2001-05-21

    Logged In: YES
    user_id=99089

    Fixed and in CVS. Try it again from CVS.

     
  • Daler
    Daler
    2001-05-21

    • labels: --> Configuration
    • assigned_to: nobody --> mulvihiw
    • status: open --> closed-fixed