0001-test-fix-gcc-14.x-compile-implicit-int.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From d449f26f782be91b3847f88ed2bd937582a575b6 Mon Sep 17 00:00:00 2001
  2. From: Peter Seiderer <ps.report@gmx.net>
  3. Date: Sun, 25 Aug 2024 11:33:59 +0200
  4. Subject: [PATCH] test: fix gcc-14.x compile (implicit int)
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Fixes:
  9. test.c:14:8: error: type defaults to ‘int’ in declaration of ‘num_test’ [-Wimplicit-int]
  10. 14 | static num_test;
  11. | ^~~~~~~~
  12. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  13. Upstream: https://github.com/dottedmag/libsha1/pull/1
  14. Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
  15. ---
  16. test.c | 2 +-
  17. 1 file changed, 1 insertion(+), 1 deletion(-)
  18. diff --git a/test.c b/test.c
  19. index 21a6525..1ec89d3 100644
  20. --- a/test.c
  21. +++ b/test.c
  22. @@ -11,7 +11,7 @@ static void print_hex(const char* data, size_t size)
  23. printf("%x%x", ((unsigned char)data[i])/16, ((unsigned char)data[i])%16);
  24. }
  25. -static num_test;
  26. +static int num_test;
  27. static int do_test(const char* data, size_t size, const char* expected_dgst)
  28. {
  29. --
  30. 2.47.1