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

WordKey.cc:372:7: warning: suggest explicit braces to avoid ambiguous 'else' #30

Closed
andy5995 opened this issue Nov 18, 2017 · 1 comment

Comments

@andy5995
Copy link
Contributor

andy5995 commented Nov 18, 2017

The warning needs to be fixed.

WordKey.cc: In member function 'int WordKey::Prefix() const':

WordKey.cc:372:7: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]

     if(IsDefined(j))

       ^

and this one, in a related file:

WordKeyInfo.cc: In member function 'int WordKeyField::SetString()':

WordKeyInfo.cc:48:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   name.set("Word");

https://github.com/andy5995/htdig/blob/1d0d2f4e17f2bbbfc6b402c1ece51e7e80fe66e2/htword/WordKey.cc#L1

@andy5995
Copy link
Contributor Author

Closed with 4d0af84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant