|
|
1bb595 |
From 144e78dfebc0fd01feb6c11a37f81d01146cf33a Mon Sep 17 00:00:00 2001
|
|
|
1bb595 |
From: Alexey Tikhonov <atikhono@redhat.com>
|
|
|
1bb595 |
Date: Fri, 12 Jun 2020 19:10:33 +0200
|
|
|
1bb595 |
Subject: [PATCH] util/inotify: fixed CLANG_WARNING
|
|
|
1bb595 |
MIME-Version: 1.0
|
|
|
1bb595 |
Content-Type: text/plain; charset=UTF-8
|
|
|
1bb595 |
Content-Transfer-Encoding: 8bit
|
|
|
1bb595 |
|
|
|
1bb595 |
Fixed following warning:
|
|
|
1bb595 |
```
|
|
|
1bb595 |
sssd-2.3.1/src/util/inotify.c:346:17: warning: Value stored to 'ret' is never read
|
|
|
1bb595 |
# ret = EOK;
|
|
|
1bb595 |
# ^ ~~~
|
|
|
1bb595 |
```
|
|
|
1bb595 |
|
|
|
1bb595 |
Reviewed-by: Tomáš Halman <thalman@redhat.com>
|
|
|
1bb595 |
---
|
|
|
1bb595 |
src/util/inotify.c | 5 +++--
|
|
|
1bb595 |
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
1bb595 |
|
|
|
1bb595 |
diff --git a/src/util/inotify.c b/src/util/inotify.c
|
|
|
1bb595 |
index ffc15ad4d..cf3e3d84d 100644
|
|
|
1bb595 |
--- a/src/util/inotify.c
|
|
|
1bb595 |
+++ b/src/util/inotify.c
|
|
|
1bb595 |
@@ -319,7 +319,9 @@ static void snotify_internal_cb(struct tevent_context *ev,
|
|
|
1bb595 |
|
|
|
1bb595 |
in_event = (const struct inotify_event *) ptr;
|
|
|
1bb595 |
|
|
|
1bb595 |
- //debug_flags(in_event->mask, in_event->name);
|
|
|
1bb595 |
+#if 0
|
|
|
1bb595 |
+ debug_flags(in_event->mask, in_event->name);
|
|
|
1bb595 |
+#endif
|
|
|
1bb595 |
|
|
|
1bb595 |
if (snctx->wctx->dir_wd == in_event->wd) {
|
|
|
1bb595 |
ret = process_dir_event(snctx, in_event);
|
|
|
1bb595 |
@@ -343,7 +345,6 @@ static void snotify_internal_cb(struct tevent_context *ev,
|
|
|
1bb595 |
} else {
|
|
|
1bb595 |
DEBUG(SSSDBG_MINOR_FAILURE,
|
|
|
1bb595 |
"Unknown watch %d\n", in_event->wd);
|
|
|
1bb595 |
- ret = EOK;
|
|
|
1bb595 |
}
|
|
|
1bb595 |
}
|
|
|
1bb595 |
}
|
|
|
1bb595 |
--
|
|
|
1bb595 |
2.21.3
|
|
|
1bb595 |
|