! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Fix compiler warnings
Status:
CLOSED: FIXED
Product:
Xfce4-taskmanager
Component:
General

Comments

Description Enrico Tröger editbugs 2008-05-31 09:08:07 CEST
When compiling xfce4-taskmanager, I get the following compiler warnings:

xfce-taskmanager-linux.h:42: warning: ‘pagesize’ defined but not used
xfce-taskmanager-linux.h:42: warning: ‘pagesize’ defined but not used
xfce-taskmanager-linux.h:42: warning: ‘pagesize’ defined but not used
functions.c: In function ‘save_config’:
functions.c:232: warning: pointer targets in passing argument 2 of
‘gtk_tree_sortable_get_sort_column_id’ differ in signedness
functions.c: At top level: xfce-taskmanager-linux.h:42: warning:
‘pagesize’ defined but not used
xfce-taskmanager-linux.h:42: warning: ‘pagesize’ defined but not used
xfce-taskmanager-linux.c: In function ‘set_priority_to_task’:
xfce-taskmanager-linux.c:316: warning: implicit declaration of function
‘g_sprintf’

And it replaces sprintf() and g_sprintf() calls with g_snprintf() which
should be generally better.

Attached patch should fix them.
Comment 1 Enrico Tröger editbugs 2008-05-31 09:08:27 CEST
Created attachment 1654 
Fix compiler warnings

Bug #4126

Reported by:
Enrico Tröger
Reported on: 2008-05-31
Last modified on: 2009-07-14

People

Assignee:
Mike Massonnet
CC List:
1 user

Version

Version:
unspecified

Attachments

Fix compiler warnings (2.11 KB, patch)
2008-05-31 09:08 CEST , Enrico Tröger
no flags

Additional information