Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler warnings when SECURE_NPCTIMEOUT enabled #3197

Closed
jasonch35 opened this issue Mar 30, 2023 · 0 comments
Closed

Compiler warnings when SECURE_NPCTIMEOUT enabled #3197

jasonch35 opened this issue Mar 30, 2023 · 0 comments

Comments

@jasonch35
Copy link
Contributor

jasonch35 commented Mar 30, 2023

Describe the bug
A clear and concise description of what the bug is.

npc.c: In function 'npc_rr_secure_timeout_timer':
npc.c:308:2: warning: enumeration value 'NPCT_WAIT' not handled in switch [-Wswitch-enum]
  308 |  switch( sd->npc_idle_type ) {
      |  ^~~~~~

To Reproduce
Steps to reproduce the behavior:

  1. Enable/Uncomment in /src/config/secure.h
    #define SECURE_NPCTIMEOUT
  2. Compile

Expected behavior
A clear and concise description of what you expected to happen.
No warnings

Screenshots
If applicable, add screenshots to help explain your problem.

System specs (please complete the following information):

  • OS: debian 11
  • latest gcc and make
  • Hercules Version v2023.03.08
  • Mode: pre-renewal
  • Packet version: 20190530
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants