Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1
stalonetray
stalonetray-fix-compile-error.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File stalonetray-fix-compile-error.diff of Package stalonetray
Change scrollbars_highlight_off() and scrollbars_highlight_on() to void Since the return value of scrollbars_highlight_on() and scrollbars_highlight_off() is not used and even no value is returned, change the function signature to a return type of void. This fixes following compile warning: scrollbars.c: In function 'scrollbars_highlight_off': scrollbars.c:337: warning: control reaches end of non-void function scrollbars.c: In function 'scrollbars_highlight_on': scrollbars.c:329: warning: control reaches end of non-void function Signed-off-by: Bernhard Walle <bernhard@bwalle.de> --- src/scrollbars.c | 4 ++-- src/scrollbars.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) --- a/src/scrollbars.c +++ b/src/scrollbars.c @@ -320,7 +320,7 @@ int scrollbars_scroll_to(struct TrayIcon return SUCCESS; } -int scrollbars_highlight_on(int id) +void scrollbars_highlight_on(int id) { Window sb_wid; sb_wid = (0 <= id && id < 4) ? tray_data.scrollbars_data.scrollbar[id] : None; @@ -328,7 +328,7 @@ int scrollbars_highlight_on(int id) scrollbars_refresh(1); } -int scrollbars_highlight_off(int id) +void scrollbars_highlight_off(int id) { Window sb_wid; sb_wid = (0 <= id && id < 4) ? tray_data.scrollbars_data.scrollbar[id] : None; --- a/src/scrollbars.h +++ b/src/scrollbars.h @@ -62,7 +62,7 @@ void scrollbars_periodic_tasks(); /* Scroll to icon */ int scrollbars_scroll_to(struct TrayIcon *ti); /* Highlight scrollbar */ -int scrollbars_highlight_on(int id); +void scrollbars_highlight_on(int id); /* Switch hightlight off */ -int scrollbars_highlight_off(int id); +void scrollbars_highlight_off(int id); #endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor