Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKaren Ng
209 PointsThe variable 'entry' is assigned but its value never used
I even tried copying and pasting the code provided on the site, but still got this error:
"Program.cs(11,18): warning CS0219: The variable 'entry' is assigned but its value never used"
It prompts for "Enter how many minutes you exercised", but when I put 30 in, it says "treehouse: ~/workspace$"
1 Answer
Steven Parker
231,210 PointsThat's not an actual "error", that's a compiler warning.
So it doesn't stop the process, but it's a good hint that there may be something wrong in the code.
For a further analysis of the issue, post your (properly formatted) code, or use the snapshot function in the workspace and provide the link to that.
Karen Ng
209 PointsKaren Ng
209 PointsThanks Steven, I closed the code that triggered that warning, but will include a snapshot or the formatted code next time!