Jump to content
  • 0

Last Git - Warning Issues - How to Fix it?


Tales

Question


  • Group:  Members
  • Topic Count:  163
  • Topics Per Day:  0.04
  • Content Count:  319
  • Reputation:   8
  • Joined:  02/05/12
  • Last Seen:  

 

 

Last Git - Warning Issues - How to Fix it?

 
 
      CC      loginchrif.c
loginchrif.c: In function ‘logchrif_parse_accinfo’:
loginchrif.c:838: warning: unused variable ‘state’
loginchrif.c:838: warning: unused variable ‘logincount’
loginchrif.c:837: warning: unused variable ‘level’
 
 
        CC      homunculus.c
homunculus.c: In function ‘hom_skill_get_index’:
homunculus.c:58: warning: unused variable ‘idx’
 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  790
  • Reputation:   225
  • Joined:  01/30/13
  • Last Seen:  

"Unused variable" warnings can easily be fixed by simply removing the variable declarations. It tells you the file and the line.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  317
  • Reputation:   63
  • Joined:  11/13/11
  • Last Seen:  

Generally, it's safe to ignore warnings that you're unsure about. It's just the compiler being strict.

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...