@@ -245,12 +245,10 @@ class JsonWriter : public TraceWriter {
245
245
" \" tid\" : \"\" , \" ts\" : \"\" }}" );
246
246
out.info (" ]\n }}" );
247
247
}
248
- void begin ([[maybe_unused]] uint64_t id, [[maybe_unused]] const char *fname,
249
- [[maybe_unused]] std::string args) override {}
248
+ void begin (uint64_t , const char *, std::string) override {}
250
249
251
- void end ([[maybe_unused]] uint64_t id, const char *fname, std::string args,
252
- Timepoint tp, Timepoint start_tp,
253
- [[maybe_unused]] const ur_result_t *resultp) override {
250
+ void end (uint64_t , const char *fname, std::string args, Timepoint tp,
251
+ Timepoint start_tp, const ur_result_t *) override {
254
252
auto dur = tp - start_tp;
255
253
auto ts_us = std::chrono::duration_cast<std::chrono::microseconds>(
256
254
tp.time_since_epoch ())
@@ -316,10 +314,9 @@ std::optional<fn_context> pop_instance_data(uint64_t instance) {
316
314
return data;
317
315
}
318
316
319
- XPTI_CALLBACK_API void
320
- trace_cb (uint16_t trace_type, [[maybe_unused]] xpti::trace_event_data_t *parent,
321
- [[maybe_unused]] xpti::trace_event_data_t *event, uint64_t instance,
322
- const void *user_data) {
317
+ XPTI_CALLBACK_API void trace_cb (uint16_t trace_type, xpti::trace_event_data_t *,
318
+ xpti::trace_event_data_t *, uint64_t instance,
319
+ const void *user_data) {
323
320
// stop the the clock as the very first thing, only used for TRACE_FN_END
324
321
auto time_for_end = Clock::now ();
325
322
auto *args = static_cast <const xpti::function_with_args_t *>(user_data);
@@ -368,8 +365,7 @@ trace_cb(uint16_t trace_type, [[maybe_unused]] xpti::trace_event_data_t *parent,
368
365
* Called for every stream.
369
366
*/
370
367
XPTI_CALLBACK_API void xptiTraceInit (unsigned int major_version,
371
- unsigned int minor_version,
372
- [[maybe_unused]] const char *version_str,
368
+ unsigned int minor_version, const char *,
373
369
const char *stream_name) {
374
370
if (stream_name == nullptr ) {
375
371
out.debug (" Found stream with null name. Skipping..." );
0 commit comments