Skip to content

Commit

Permalink
fix(check_memory): fix warnings reported by clang
Browse files Browse the repository at this point in the history
    check_memory.c:130:9: warning: Value stored to 'perfdata_memavailable_msg'
                          during its initialization is never read
                          [deadcode.DeadStores]
      130 |        *perfdata_memavailable_msg = "",
          |         ^~~~~~~~~~~~~~~~~~~~~~~~~   ~~
    check_memory.c:131:9: warning: Value stored to 'perfdata_memused_msg'
                          during its initialization is never read
                          [deadcode.DeadStores]
      131 |        *perfdata_memused_msg = "";
          |         ^~~~~~~~~~~~~~~~~~~~   ~~

Signed-off-by: Davide Madrisan <[email protected]>
  • Loading branch information
madrisan committed Sep 12, 2024
1 parent e0c9624 commit 9828130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/check_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ main (int argc, char **argv)
char *units = NULL;
char *status_msg, *perfdata_mem_msg,
*perfdata_vmem_msg = "",
*perfdata_memavailable_msg = "",
*perfdata_memused_msg = "";
*perfdata_memavailable_msg,
*perfdata_memused_msg;
float mem_percent = 0;
thresholds *my_threshold = NULL;

Expand Down

0 comments on commit 9828130

Please sign in to comment.