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

Remove unused inventory_position #36047

Merged
merged 1 commit into from
Dec 12, 2019

Conversation

AMurkin
Copy link
Contributor

@AMurkin AMurkin commented Dec 12, 2019

Summary

SUMMARY: None

Purpose of change

Fix

src/player.cpp: In member function ‘void player::use(item_location)’:
src/player.cpp:5224:9: error: unused variable ‘inventory_position’ [-Werror=unused-variable]
     int inventory_position = loc.where() == item_location::type::character ?
         ^~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors

Describe the solution

Delete two LOC.
It compiles.

@KorGgenT KorGgenT merged commit 41ec668 into CleverRaven:master Dec 12, 2019
@AMurkin AMurkin deleted the remove-unused-variable-player branch December 12, 2019 13:08
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

Successfully merging this pull request may close these issues.

2 participants