Prepare for '-Wunused-parameter'
[lttng-tools.git] / tests / regression / ust / multi-lib / probes.h
index 31e6ec3b33e99ecf46c12295edd93410699b37b2..05bab2dd7c5963199cd8f12098e8e53c5b4c0bb5 100644 (file)
@@ -1,18 +1,8 @@
 /*
- * Copyright (C) 2018 Francis Deslauriers <francis.deslauriers@efficios.com>
+ * Copyright (C) 2018 Francis Deslauriers <francis.deslauriers@efficios.com>
  *
- * This library is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; version 2.1 of the License.
+ * SPDX-License-Identifier: LGPL-2.1-only
  *
- * This library is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
- * for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
 #undef TRACEPOINT_PROVIDER
@@ -53,6 +43,7 @@ TRACEPOINT_ENUM(multi, enum_a,
 TRACEPOINT_EVENT(multi, tp,
        TP_ARGS(uint64_t, arg),
        TP_FIELDS(
+               ctf_unused(arg)
                ctf_enum(multi, enum_a, int16_t, enum_short_C,  0)
                ctf_enum(multi, enum_a, int32_t, enum_int_C,  1)
                ctf_enum(multi, enum_a, uint64_t, enum_long_C,  2)
@@ -69,7 +60,8 @@ TRACEPOINT_ENUM(multi, enum_a,
 TRACEPOINT_EVENT(multi, tp,
        TP_ARGS(uint64_t, arg),
        TP_FIELDS(
-       ctf_enum(multi, enum_a, int32_t, enum_int_D,  1)
+               ctf_unused(arg)
+               ctf_enum(multi, enum_a, int32_t, enum_int_D,  1)
                ctf_enum(multi, enum_a, int16_t, enum_short_D,  0)
                ctf_enum(multi, enum_a, uint64_t, enum_long_D,  2)
        )
@@ -138,6 +130,7 @@ TRACEPOINT_ENUM(multi, enum_a,
 TRACEPOINT_EVENT(multi, tp,
        TP_ARGS(uint64_t, arg),
        TP_FIELDS(
+               ctf_unused(arg)
                ctf_enum(multi, enum_a, int32_t, enum_int,  1)
        )
 )
@@ -152,7 +145,8 @@ TRACEPOINT_ENUM(multi, enum_a,
 TRACEPOINT_EVENT(multi, tp,
        TP_ARGS(uint64_t, arg),
        TP_FIELDS(
-       ctf_enum(multi, enum_a, int64_t, enum_int,  1)
+               ctf_unused(arg)
+               ctf_enum(multi, enum_a, int64_t, enum_int,  1)
        )
 )
 #elif defined(ACTIVATE_PROBES_N)
@@ -166,6 +160,7 @@ TRACEPOINT_ENUM(multi, enum_a,
 TRACEPOINT_EVENT(multi, tp,
        TP_ARGS(uint64_t, arg),
        TP_FIELDS(
+               ctf_unused(arg)
                ctf_enum(multi, enum_a, int16_t, enum_int,  1)
        )
 )
@@ -173,6 +168,7 @@ TRACEPOINT_EVENT(multi, tp,
 TRACEPOINT_EVENT(multi, tp,
        TP_ARGS(uint64_t, arg),
        TP_FIELDS(
+               ctf_unused(arg)
                ctf_string(arg_string, "string")
        )
 )
@@ -180,6 +176,7 @@ TRACEPOINT_EVENT(multi, tp,
 TRACEPOINT_EVENT(multi, tp,
        TP_ARGS(uint64_t, arg),
        TP_FIELDS(
+               ctf_unused(arg)
                ctf_string(my_arg_string, "string")
        )
 )
@@ -187,6 +184,7 @@ TRACEPOINT_EVENT(multi, tp,
 TRACEPOINT_EVENT(multi, tp,
        TP_ARGS(uint64_t, arg),
        TP_FIELDS(
+               ctf_unused(arg)
        )
 )
 #endif
This page took 0.023774 seconds and 4 git commands to generate.