Thread (46 messages) 46 messages, 4 authors, 2020-05-01

[PATCH 4/4] progress.c: silence cgcc suggestion about internal linkage

flat view
STALE2360d

From: Đoàn Trần Công Danh <hidden>
Date: 2020-04-23 13:48:15
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Đoàn Trần Công Danh <redacted>
---
 progress.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/progress.c b/progress.c
index 19805ac646..fb53a2ec0c 100644
--- a/progress.c
+++ b/progress.c
@@ -50,7 +50,9 @@ static volatile sig_atomic_t progress_update;
  * These are only intended for testing the progress output, i.e. exclusively
  * for 'test-tool progress'.
  */
+extern int progress_testing; /* to silence sparse: internal linkage */
 int progress_testing;
+extern uint64_t progress_test_ns; /* to silence sparse: internal linkage */
 uint64_t progress_test_ns = 0;
 void progress_test_force_update(void); /* To silence -Wmissing-prototypes */
 void progress_test_force_update(void)
-- 
2.26.2.384.g435bf60bd5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help