[systemd-commits] docs/gudev src/detect-virt src/shared src/udev
Kay Sievers
kay at kemper.freedesktop.org
Tue Apr 17 09:43:03 PDT 2012
docs/gudev/Makefile.am | 2 +-
src/detect-virt/detect-virt.c | 3 ++-
src/shared/cgroup-util.c | 2 +-
src/udev/udev-builtin.c | 2 +-
4 files changed, 5 insertions(+), 4 deletions(-)
New commits:
commit 018ef268b1667ba0dbfc15804ab33deed6092147
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Apr 17 18:42:09 2012 +0200
silence a bunch of gcc warnings
diff --git a/docs/gudev/Makefile.am b/docs/gudev/Makefile.am
index f2e9532..5c82167 100644
--- a/docs/gudev/Makefile.am
+++ b/docs/gudev/Makefile.am
@@ -21,7 +21,7 @@ DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
# gtk-doc will search all .c & .h files beneath here for inline comments
# documenting the functions and macros.
# e.g. DOC_SOURCE_DIR=../../../gtk
-DOC_SOURCE_DIR=$(top_srcdir)/src/gudev
+DOC_SOURCE_DIR=$(top_srcdir)/src/gudev $(top_builddir)/src/gudev
# Extra options to pass to gtkdoc-scangobj. Not normally needed.
SCANGOBJ_OPTIONS=
diff --git a/src/detect-virt/detect-virt.c b/src/detect-virt/detect-virt.c
index a83fb3c..8b8fc45 100644
--- a/src/detect-virt/detect-virt.c
+++ b/src/detect-virt/detect-virt.c
@@ -115,7 +115,8 @@ static int parse_argv(int argc, char *argv[]) {
int main(int argc, char *argv[]) {
const char *id = NULL;
- int retval, r;
+ int r;
+ int retval = EXIT_SUCCESS;
/* This is mostly intended to be used for scripts which want
* to detect whether we are being run in a virtualized
diff --git a/src/shared/cgroup-util.c b/src/shared/cgroup-util.c
index 3cb41c7..d34c142 100644
--- a/src/shared/cgroup-util.c
+++ b/src/shared/cgroup-util.c
@@ -514,7 +514,7 @@ static const char *normalize_controller(const char *controller) {
}
static int join_path(const char *controller, const char *path, const char *suffix, char **fs) {
- char *t;
+ char *t = NULL;
if (!(controller || path))
return -EINVAL;
diff --git a/src/udev/udev-builtin.c b/src/udev/udev-builtin.c
index b8cdc70..6509f58 100644
--- a/src/udev/udev-builtin.c
+++ b/src/udev/udev-builtin.c
@@ -42,7 +42,7 @@ static const struct udev_builtin *builtins[] = {
int udev_builtin_init(struct udev *udev)
{
unsigned int i;
- int err;
+ int err = 0;
for (i = 0; i < ELEMENTSOF(builtins); i++) {
if (builtins[i]->init) {
More information about the systemd-commits
mailing list