Commit 3f832df
zstd: fix g_debuglevel export warning
The g_debuglevel variable in debug.c is only used when DEBUGLEVEL is
defined to be above 2. This means by default there's no actual definition
of this in the headers, so sparse is giving the following warning:
lib/zstd/common/debug.c:24:5: warning: symbol 'g_debuglevel' was not declared. Should it be static?
We can use the same check as in the header to remove this if it isn't
going to be used, silencing the warning and removing a small bit of unused
data.
Signed-off-by: Ben Dooks <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>1 parent 40eb0e9 commit 3f832df
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
| 27 | + | |
0 commit comments