[gtksourceview] trace: add dummy operation to satisfy clang



commit ec010a92e6bd1ec56adc5f18761f2b102cfbe2f4
Author: Christian Hergert <christian hergert me>
Date:   Wed Dec 22 12:59:07 2021 -0800

    trace: add dummy operation to satisfy clang

 gtksourceview/gtksourcetrace.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/gtksourcetrace.h b/gtksourceview/gtksourcetrace.h
index 2a5ac742..8136b60c 100644
--- a/gtksourceview/gtksourcetrace.h
+++ b/gtksourceview/gtksourcetrace.h
@@ -63,7 +63,7 @@ G_BEGIN_DECLS
 # define GTK_SOURCE_PROFILER_MARK(duration, name, message) \
   G_STMT_START { } G_STMT_END
 # define GTK_SOURCE_PROFILER_BEGIN_MARK G_STMT_START {
-# define GTK_SOURCE_PROFILER_END_MARK(name, message) } G_STMT_END
+# define GTK_SOURCE_PROFILER_END_MARK(name, message) (void)0; } G_STMT_END
 # define GTK_SOURCE_PROFILER_LOG(format, ...) G_STMT_START { } G_STMT_END
 #endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]