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