mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-04 21:55:44 +07:00
silence a bunch of gcc warnings
This commit is contained in:
parent
80a5cbace4
commit
018ef268b1
@ -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=
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user