Skip to content

Commit 018ef26

Browse files
committed
silence a bunch of gcc warnings
1 parent 80a5cba commit 018ef26

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

docs/gudev/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
2121
# gtk-doc will search all .c & .h files beneath here for inline comments
2222
# documenting the functions and macros.
2323
# e.g. DOC_SOURCE_DIR=../../../gtk
24-
DOC_SOURCE_DIR=$(top_srcdir)/src/gudev
24+
DOC_SOURCE_DIR=$(top_srcdir)/src/gudev $(top_builddir)/src/gudev
2525

2626
# Extra options to pass to gtkdoc-scangobj. Not normally needed.
2727
SCANGOBJ_OPTIONS=

src/detect-virt/detect-virt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ static int parse_argv(int argc, char *argv[]) {
115115

116116
int main(int argc, char *argv[]) {
117117
const char *id = NULL;
118-
int retval, r;
118+
int r;
119+
int retval = EXIT_SUCCESS;
119120

120121
/* This is mostly intended to be used for scripts which want
121122
* to detect whether we are being run in a virtualized

src/shared/cgroup-util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ static const char *normalize_controller(const char *controller) {
514514
}
515515

516516
static int join_path(const char *controller, const char *path, const char *suffix, char **fs) {
517-
char *t;
517+
char *t = NULL;
518518

519519
if (!(controller || path))
520520
return -EINVAL;

src/udev/udev-builtin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static const struct udev_builtin *builtins[] = {
4242
int udev_builtin_init(struct udev *udev)
4343
{
4444
unsigned int i;
45-
int err;
45+
int err = 0;
4646

4747
for (i = 0; i < ELEMENTSOF(builtins); i++) {
4848
if (builtins[i]->init) {

0 commit comments

Comments
 (0)