diff options
author | Kay Sievers <kay@vrfy.org> | 2012-04-17 18:42:09 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-04-17 18:42:09 +0200 |
commit | 018ef268b1667ba0dbfc15804ab33deed6092147 (patch) | |
tree | c700a2aaab583ed1b90abb553c9bcffd142ca07e | |
parent | 80a5cbace45a6adbf2f9119edc5a4b10db493064 (diff) | |
download | systemd-018ef268b1667ba0dbfc15804ab33deed6092147.tar.gz systemd-018ef268b1667ba0dbfc15804ab33deed6092147.tar.bz2 systemd-018ef268b1667ba0dbfc15804ab33deed6092147.zip |
silence a bunch of gcc warnings
-rw-r--r-- | docs/gudev/Makefile.am | 2 | ||||
-rw-r--r-- | src/detect-virt/detect-virt.c | 3 | ||||
-rw-r--r-- | src/shared/cgroup-util.c | 2 | ||||
-rw-r--r-- | src/udev/udev-builtin.c | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/docs/gudev/Makefile.am b/docs/gudev/Makefile.am index f2e953247a..5c82167471 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 a83fb3ced5..8b8fc45ea0 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 3cb41c7c5f..d34c142729 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 b8cdc708bc..6509f5881d 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) { |