Bug 91265 - Unused variable warnings in up-tool.c
Summary: Unused variable warnings in up-tool.c
Status: RESOLVED FIXED
Alias: None
Product: upower
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-08 10:53 UTC by David King
Modified: 2015-07-29 12:55 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
fix the warnings (902 bytes, patch)
2015-07-08 10:54 UTC, David King
Details | Splinter Review

Description David King 2015-07-08 10:53:45 UTC
I came across some compiler warnings caused by unused variables:

upower-0.99.2/tools/up-tool.c:169:10: warning: unused variable 'error' [-Wunused-variable]
upower-0.99.2/tools/up-tool.c:123:16: warning: unused variable 'warning_level' [-Wunused-variable]
Comment 1 David King 2015-07-08 10:54:38 UTC
Created attachment 117003 [details] [review]
fix the warnings
Comment 2 Richard Hughes 2015-07-29 12:55:51 UTC
Cosimo's patch got there first; apologies.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.