diff options
author | Jim Warner <james.warner@comcast.net> | 2022-01-02 00:00:09 -0600 |
---|---|---|
committer | Craig Small <csmall@dropbear.xyz> | 2022-01-07 19:19:15 +1100 |
commit | 2f00186730e2150e7e2c47e4b4e7e8b2f9ab3267 (patch) | |
tree | 87c662b19c9c0fc50f299061273fa93b12c3fc42 | |
parent | 4985a11f003b65e4212f6197ca0411e35514c1b0 (diff) | |
download | procps-ng-2f00186730e2150e7e2c47e4b4e7e8b2f9ab3267.tar.gz |
sysctl: eliminate some warnings of '-Wunused-function'
Signed-off-by: Jim Warner <james.warner@comcast.net>
-rw-r--r-- | sysctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -139,6 +139,7 @@ static void slashdot(char *restrict p, char old, char new) } } +#if 0 // avoid '-Wunused-function' warning static void setting_free(SysctlSetting *s) { if (!s) return; @@ -148,6 +149,7 @@ static void setting_free(SysctlSetting *s) { free(s->value); free(s); } +#endif static SysctlSetting *setting_new( const char *key, @@ -285,6 +287,7 @@ static void rstrip(char *line) end[1] = '\0'; } +#if 0 // avoid '-Wunused-function' warning /* * Strip the leading and trailing spaces from a string */ @@ -308,6 +311,7 @@ static char *StripLeadingAndTrailingSpaces(char *oneline) return t; } +#endif /* * Read a sysctl setting |