[gjs: 2/11] build: Fix unused variable warnings



commit 4b92fbbd7f144d756ddc3baf9ba90468b36785cb
Author: Philip Chimento <philip chimento gmail com>
Date:   Tue Oct 22 20:57:47 2019 -0700

    build: Fix unused variable warnings

 gjs/profiler.cpp | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gjs/profiler.cpp b/gjs/profiler.cpp
index 7321a93f..a621d461 100644
--- a/gjs/profiler.cpp
+++ b/gjs/profiler.cpp
@@ -293,11 +293,8 @@ _gjs_profiler_is_running(GjsProfiler *self)
 
 #ifdef ENABLE_PROFILER
 
-static void
-gjs_profiler_sigprof(int        signum,
-                     siginfo_t *info,
-                     void      *unused)
-{
+static void gjs_profiler_sigprof(int signum G_GNUC_UNUSED, siginfo_t* info,
+                                 void*) {
     GjsProfiler *self = gjs_context_get_profiler(profiling_context);
 
     g_assert(((void) "SIGPROF handler called with invalid signal info", info));


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