Added -Werror.
2000-11-22 Martin Baulig <martin@home-of-linux.org> * configure.in (INCLUDES): Added -Werror. * include/glibtop/open.h (_glibtop_open_sysdeps): The first argument is now a `glibtop_client *', removed the `flags' argument and added `const char **backend_args' and `GError **opt_error'.
This commit is contained in:
committed by
Martin Baulig
parent
f704c4becf
commit
6e4f80b8e2
@@ -1,5 +1,11 @@
|
||||
2000-11-22 Martin Baulig <martin@home-of-linux.org>
|
||||
|
||||
* configure.in (INCLUDES): Added -Werror.
|
||||
|
||||
* include/glibtop/open.h (_glibtop_open_sysdeps): The first
|
||||
argument is now a `glibtop_client *', removed the `flags' argument
|
||||
and added `const char **backend_args' and `GError **opt_error'.
|
||||
|
||||
* include/glibtop/backends.h (glibtop_open_backend_l): Allow
|
||||
the `error' argument to be NULL; propagate the error to the
|
||||
glibtop_client in this case.
|
||||
|
@@ -328,7 +328,7 @@ AC_SUBST(machine_incs)
|
||||
|
||||
LIBGTOP_BACKEND_DIR="\$(datadir)/libgtop/backends"
|
||||
|
||||
INCLUDES="-D_IN_LIBGTOP -D_GNU_SOURCE -DGLIBTOP_NAMES -I\$(top_builddir) -I\$(top_srcdir) -I\$(top_srcdir)/sysdeps/$sysdeps_dir -I\$(top_srcdir)/include -I\$(top_builddir)/include -I\$(top_srcdir)/intl $GNOMESUPPORT_CFLAGS $GLIB_CFLAGS $XML_CFLAGS $CFLAGS $X_CFLAGS "'-DGTOPLOCALEDIR=\"$(datadir)/locale\" -DLIBGTOP_VERSION=\"'"$LIBGTOP_VERSION"'\" -DLIBGTOP_SERVER_VERSION=\"'"$LIBGTOP_SERVER_VERSION"'\" -DLIBGTOP_VERSION_CODE='$LIBGTOP_VERSION_CODE' -DLIBGTOP_SERVER=\"'"$LIBGTOP_SERVER"'\" -DLIBGTOP_BACKEND_DIR=\"'"$LIBGTOP_BACKEND_DIR"'\"'
|
||||
INCLUDES="-D_IN_LIBGTOP -D_GNU_SOURCE -DGLIBTOP_NAMES -Werror -I\$(top_builddir) -I\$(top_srcdir) -I\$(top_srcdir)/sysdeps/$sysdeps_dir -I\$(top_srcdir)/include -I\$(top_builddir)/include -I\$(top_srcdir)/intl $GNOMESUPPORT_CFLAGS $GLIB_CFLAGS $XML_CFLAGS $CFLAGS $X_CFLAGS "'-DGTOPLOCALEDIR=\"$(datadir)/locale\" -DLIBGTOP_VERSION=\"'"$LIBGTOP_VERSION"'\" -DLIBGTOP_SERVER_VERSION=\"'"$LIBGTOP_SERVER_VERSION"'\" -DLIBGTOP_VERSION_CODE='$LIBGTOP_VERSION_CODE' -DLIBGTOP_SERVER=\"'"$LIBGTOP_SERVER"'\" -DLIBGTOP_BACKEND_DIR=\"'"$LIBGTOP_BACKEND_DIR"'\"'
|
||||
|
||||
AC_SUBST(INCLUDES)
|
||||
|
||||
|
@@ -70,8 +70,9 @@ glibtop_open_s (glibtop_server *server, const char *program_name,
|
||||
#ifdef _IN_LIBGTOP
|
||||
|
||||
void
|
||||
_glibtop_open_sysdeps (glibtop *server, const char *program_name,
|
||||
const unsigned long features, const unsigned flags);
|
||||
_glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
|
||||
const u_int64_t features, const char **backend_args,
|
||||
GError **opt_error);
|
||||
|
||||
#endif /* _IN_LIBGTOP */
|
||||
|
||||
|
@@ -10,7 +10,8 @@ noinst_LTLIBRARIES = libgtop_server.la
|
||||
|
||||
libgtop_la_SOURCES = errors.c backend.c \
|
||||
init-backends.c open-backend.c \
|
||||
glibtop-client.c glibtop-server.c
|
||||
glibtop-client.c glibtop-server.c \
|
||||
sysdeps-init.c
|
||||
|
||||
libgtop_server_la_SOURCES = error.c xmalloc.c
|
||||
|
||||
|
@@ -99,7 +99,7 @@ glibtop_client_warning_handler (glibtop_client *client, GError *error)
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
glibtop_client_marshal_VOID__POINTER (GClosure *closure,
|
||||
GValue *return_value,
|
||||
guint n_param_values,
|
||||
|
@@ -65,11 +65,12 @@ const glibtop_signame glibtop_sys_siglist [] =
|
||||
};
|
||||
|
||||
void
|
||||
_glibtop_open_sysdeps (glibtop *server, const char *program_name,
|
||||
const unsigned long features, const unsigned flags)
|
||||
_glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
|
||||
const u_int64_t features, const char **backend_args,
|
||||
GError **opt_error)
|
||||
{
|
||||
glibtop_open_backend_l (server, "glibtop-backend-common",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (server, "glibtop-backend-server",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-common",
|
||||
features, backend_args, opt_error);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-server",
|
||||
features, backend_args, opt_error);
|
||||
}
|
||||
|
@@ -65,13 +65,14 @@ const glibtop_signame glibtop_sys_siglist [] =
|
||||
};
|
||||
|
||||
void
|
||||
_glibtop_open_sysdeps (glibtop *server, const char *program_name,
|
||||
const unsigned long features, const unsigned flags)
|
||||
_glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
|
||||
const u_int64_t features, const char **backend_args,
|
||||
GError **opt_error)
|
||||
{
|
||||
glibtop_open_backend_l (server, "glibtop-backend-kernel",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (server, "glibtop-backend-common",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (server, "glibtop-backend-sysdeps",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-kernel",
|
||||
features, backend_args, opt_error);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-common",
|
||||
features, backend_args, opt_error);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-sysdeps",
|
||||
features, backend_args, opt_error);
|
||||
}
|
||||
|
@@ -65,11 +65,12 @@ const glibtop_signame glibtop_sys_siglist [] =
|
||||
};
|
||||
|
||||
void
|
||||
_glibtop_open_sysdeps (glibtop *server, const char *program_name,
|
||||
const unsigned long features, const unsigned flags)
|
||||
_glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
|
||||
const u_int64_t features, const char **backend_args,
|
||||
GError **opt_error)
|
||||
{
|
||||
glibtop_open_backend_l (server, "glibtop-backend-common",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (server, "glibtop-backend-sysdeps",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-common",
|
||||
features, backend_args, opt_error);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-sysdeps",
|
||||
features, backend_args, opt_error);
|
||||
}
|
||||
|
@@ -33,13 +33,14 @@ const glibtop_signame glibtop_sys_siglist [] =
|
||||
{ { 0, NULL, NULL } };
|
||||
|
||||
void
|
||||
_glibtop_open_sysdeps (glibtop *server, const char *program_name,
|
||||
const unsigned long features, const unsigned flags)
|
||||
_glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
|
||||
const u_int64_t features, const char **backend_args,
|
||||
GError **opt_error)
|
||||
{
|
||||
glibtop_open_backend_l (server, "glibtop-backend-common",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (server, "glibtop-backend-sysdeps",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (server, "glibtop-backend-server",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-common",
|
||||
features, backend_args, opt_error);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-sysdeps",
|
||||
features, backend_args, opt_error);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-server",
|
||||
features, backend_args, opt_error);
|
||||
}
|
||||
|
@@ -33,13 +33,14 @@ const glibtop_signame glibtop_sys_siglist [] =
|
||||
{ { 0, NULL, NULL } };
|
||||
|
||||
void
|
||||
_glibtop_open_sysdeps (glibtop *server, const char *program_name,
|
||||
const unsigned long features, const unsigned flags)
|
||||
_glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
|
||||
const u_int64_t features, const char **backend_args,
|
||||
GError **opt_error)
|
||||
{
|
||||
glibtop_open_backend_l (server, "glibtop-backend-common",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (server, "glibtop-backend-sysdeps",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (server, "glibtop-backend-server",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-common",
|
||||
features, backend_args, opt_error);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-sysdeps",
|
||||
features, backend_args, opt_error);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-server",
|
||||
features, backend_args, opt_error);
|
||||
}
|
||||
|
@@ -33,11 +33,12 @@ const glibtop_signame glibtop_sys_siglist [] =
|
||||
{ { 0, NULL, NULL } };
|
||||
|
||||
void
|
||||
_glibtop_open_sysdeps (glibtop *server, const char *program_name,
|
||||
const unsigned long features, const unsigned flags)
|
||||
_glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
|
||||
const u_int64_t features, const char **backend_args,
|
||||
GError **opt_error)
|
||||
{
|
||||
glibtop_open_backend_l (server, "glibtop-backend-common",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (server, "glibtop-backend-server",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-common",
|
||||
features, backend_args, opt_error);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-server",
|
||||
features, backend_args, opt_error);
|
||||
}
|
||||
|
@@ -33,11 +33,12 @@ const glibtop_signame glibtop_sys_siglist [] =
|
||||
{ { 0, NULL, NULL } };
|
||||
|
||||
void
|
||||
_glibtop_open_sysdeps (glibtop *server, const char *program_name,
|
||||
const unsigned long features, const unsigned flags)
|
||||
_glibtop_open_sysdeps (glibtop_client *client, const char *program_name,
|
||||
const u_int64_t features, const char **backend_args,
|
||||
GError **opt_error)
|
||||
{
|
||||
glibtop_open_backend_l (server, "glibtop-backend-common",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (server, "glibtop-backend-sysdeps",
|
||||
features, NULL);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-common",
|
||||
features, backend_args, opt_error);
|
||||
glibtop_open_backend_l (client, "glibtop-backend-sysdeps",
|
||||
features, backend_args, opt_error);
|
||||
}
|
||||
|
Reference in New Issue
Block a user