clang-tidy: add most bugprone warnings
[lttng-tools.git] / src / bin / lttng-relayd / live.cpp
index f862709ac7838840c33f554edec59e415602e391..786feaae83651acf86f3115b0cb0f3530552cf2a 100644 (file)
@@ -904,7 +904,9 @@ static void *thread_dispatcher(void *data __attribute__((unused)))
                         * the data will be read at some point in time
                         * or wait to the end of the world :)
                         */
-                       ret = lttng_write(live_conn_pipe[1], &conn, sizeof(conn));
+                       ret = lttng_write(live_conn_pipe[1], &conn, sizeof(conn)); /* NOLINT sizeof
+                                                                                     used on a
+                                                                                     pointer. */
                        if (ret < 0) {
                                PERROR("write conn pipe");
                                connection_put(conn);
@@ -2640,7 +2642,10 @@ restart:
                                if (revents & LPOLLIN) {
                                        struct relay_connection *conn;
 
-                                       ret = lttng_read(live_conn_pipe[0], &conn, sizeof(conn));
+                                       ret = lttng_read(live_conn_pipe[0],
+                                                        &conn,
+                                                        sizeof(conn)); /* NOLINT sizeof used on a
+                                                                          pointer. */
                                        if (ret < 0) {
                                                goto error;
                                        }
This page took 0.025964 seconds and 4 git commands to generate.