projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: common: uninitialized lttng::ctl:error field
[lttng-tools.git]
/
src
/
common
/
fd-tracker
/
utils-poll.cpp
diff --git
a/src/common/fd-tracker/utils-poll.cpp
b/src/common/fd-tracker/utils-poll.cpp
index b1370c55d50878c3615bc292194fd489601b19ac..8c252851ee667df1319633ded704b1e9ea8169e3 100644
(file)
--- a/
src/common/fd-tracker/utils-poll.cpp
+++ b/
src/common/fd-tracker/utils-poll.cpp
@@
-5,17
+5,19
@@
*
*/
*
*/
-#include <common/compat/poll.h>
+#include <common/compat/poll.h
pp
>
-#include "utils.h"
+#include "utils.h
pp
"
#ifdef HAVE_EPOLL
#ifdef HAVE_EPOLL
+namespace {
struct create_args {
struct lttng_poll_event *events;
int size;
int flags;
};
struct create_args {
struct lttng_poll_event *events;
int size;
int flags;
};
+} /* namespace */
static int open_epoll(void *data, int *out_fd)
{
static int open_epoll(void *data, int *out_fd)
{
@@
-73,17
+75,19
@@
int fd_tracker_util_poll_clean(
* The epoll variant of the poll compat layer creates an unsuspendable fd which
* must be tracked.
*/
* The epoll variant of the poll compat layer creates an unsuspendable fd which
* must be tracked.
*/
-int fd_tracker_util_poll_create(struct fd_tracker *tracker,
- const char *name,
+int fd_tracker_util_poll_create(
+ struct fd_tracker *tracker __attribute__((unused)),
+ const char *name __attribute__((unused)),
struct lttng_poll_event *events,
int size,
struct lttng_poll_event *events,
int size,
- int flags)
+ int flags
__attribute__((unused))
)
{
return lttng_poll_create(events, size, flags);
}
int fd_tracker_util_poll_clean(
{
return lttng_poll_create(events, size, flags);
}
int fd_tracker_util_poll_clean(
- struct fd_tracker *tracker, struct lttng_poll_event *events)
+ struct fd_tracker *tracker __attribute__((unused)),
+ struct lttng_poll_event *events)
{
lttng_poll_clean(events);
return 0;
{
lttng_poll_clean(events);
return 0;
This page took
0.025344 seconds
and
4
git commands to generate.