[gjs: 20/21] maint: Fix cppcheck suppression comment



commit 57abf313107a122ec7b743cf711ec07594526bea
Author: Philip Chimento <philip chimento gmail com>
Date:   Sat Jun 8 23:06:30 2019 -0700

    maint: Fix cppcheck suppression comment
    
    Not sure why this didn't trip on master before.

 gjs/profiler.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gjs/profiler.cpp b/gjs/profiler.cpp
index 86cf632f..117a567f 100644
--- a/gjs/profiler.cpp
+++ b/gjs/profiler.cpp
@@ -323,8 +323,8 @@ gjs_profiler_sigprof(int        signum,
      * easily overflow the stack; however, dynamic allocation is not an option
      * here since we are in a signal handler.
      */
-    // cppcheck-suppress allocaCalled
     SysprofCaptureAddress* addrs =
+        // cppcheck-suppress allocaCalled
         static_cast<SysprofCaptureAddress*>(alloca(sizeof *addrs * depth));
 
     for (uint32_t ix = 0; ix < depth; ix++) {


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