More G_GNUC_UNUSED fun.
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
#endif
|
||||
|
||||
int
|
||||
main (int argc, char *argv [])
|
||||
main (int G_GNUC_UNUSED argc, char G_GNUC_UNUSED *argv [])
|
||||
{
|
||||
glibtop_union data;
|
||||
glibtop_sysdeps sysdeps;
|
||||
|
@@ -36,7 +36,7 @@
|
||||
#endif
|
||||
|
||||
int
|
||||
main (int argc, char *argv [])
|
||||
main (int G_GNUC_UNUSED argc, char G_GNUC_UNUSED *argv [])
|
||||
{
|
||||
glibtop_fsusage fsusage;
|
||||
glibtop_mountlist mount_list;
|
||||
|
@@ -24,13 +24,14 @@
|
||||
void
|
||||
handle_slave_connection (int input, int output)
|
||||
{
|
||||
glibtop *server = glibtop_global_server;
|
||||
glibtop G_GNUC_UNUSED *server = glibtop_global_server;
|
||||
int64_t G_GNUC_UNUSED *param_ptr;
|
||||
void G_GNUC_UNUSED *ptr;
|
||||
pid_t G_GNUC_UNUSED pid;
|
||||
|
||||
glibtop_response _resp, *resp = &_resp;
|
||||
glibtop_command _cmnd, *cmnd = &_cmnd;
|
||||
char parameter [BUFSIZ];
|
||||
int64_t *param_ptr;
|
||||
void *ptr;
|
||||
pid_t pid;
|
||||
|
||||
glibtop_send_version (glibtop_global_server, output);
|
||||
|
||||
@@ -97,10 +98,10 @@ handle_slave_connection (int input, int output)
|
||||
|
||||
void
|
||||
handle_slave_command (glibtop_command *cmnd, glibtop_response *resp,
|
||||
const void *parameter)
|
||||
const void G_GNUC_UNUSED *parameter)
|
||||
{
|
||||
glibtop *server = glibtop_global_server;
|
||||
pid_t pid;
|
||||
pid_t G_GNUC_UNUSED pid;
|
||||
|
||||
switch (cmnd->command) {
|
||||
case GLIBTOP_CMND_SYSDEPS:
|
||||
|
@@ -24,5 +24,5 @@
|
||||
/* Closes pipe to gtop server. */
|
||||
|
||||
void
|
||||
glibtop_close_s (glibtop *server)
|
||||
glibtop_close_s (glibtop G_GNUC_UNUSED *server)
|
||||
{ }
|
||||
|
@@ -53,7 +53,7 @@ void
|
||||
glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
|
||||
{
|
||||
char buffer [BUFSIZ], *p;
|
||||
int fd, len, i;
|
||||
int fd, len, G_GNUC_UNUSED i;
|
||||
|
||||
glibtop_init_s (&server, GLIBTOP_SYSDEPS_CPU, 0);
|
||||
|
||||
|
@@ -56,7 +56,8 @@ static void set_linux_version(void) {
|
||||
|
||||
void
|
||||
glibtop_open_s (glibtop *server, const char *program_name,
|
||||
const unsigned long features, const unsigned flags)
|
||||
const unsigned long G_GNUC_UNUSED features,
|
||||
const unsigned G_GNUC_UNUSED flags)
|
||||
{
|
||||
#ifdef HAVE_LIBGTOP_SMP
|
||||
char buffer [BUFSIZ], *p;
|
||||
|
@@ -52,7 +52,7 @@ void
|
||||
glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf, pid_t pid)
|
||||
{
|
||||
char buffer [BUFSIZ], *p;
|
||||
int i;
|
||||
int G_GNUC_UNUSED i;
|
||||
|
||||
glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_TIME, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user