fix_-wextra-semi_errors_in_nghttp2_helper_h.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Shelley Vohr <[email protected]>
  3. Date: Wed, 16 Oct 2024 16:09:37 +0200
  4. Subject: fix: -Wextra-semi errors in nghttp2_helper.h
  5. Introduced in https://github.com/nodejs/node/pull/52966
  6. Upstreamed in https://github.com/nghttp2/nghttp2/pull/2258
  7. diff --git a/deps/nghttp2/lib/nghttp2_helper.h b/deps/nghttp2/lib/nghttp2_helper.h
  8. index 89b0d4f535db795cd1df582475c02b2f4d1ac98f..f5de6290dab0e17ae3aff10230dd8ad7414f9631 100644
  9. --- a/deps/nghttp2/lib/nghttp2_helper.h
  10. +++ b/deps/nghttp2/lib/nghttp2_helper.h
  11. @@ -38,28 +38,28 @@
  12. #define nghttp2_max_def(SUFFIX, T) \
  13. static inline T nghttp2_max_##SUFFIX(T a, T b) { return a < b ? b : a; }
  14. -nghttp2_max_def(int8, int8_t);
  15. -nghttp2_max_def(int16, int16_t);
  16. -nghttp2_max_def(int32, int32_t);
  17. -nghttp2_max_def(int64, int64_t);
  18. -nghttp2_max_def(uint8, uint8_t);
  19. -nghttp2_max_def(uint16, uint16_t);
  20. -nghttp2_max_def(uint32, uint32_t);
  21. -nghttp2_max_def(uint64, uint64_t);
  22. -nghttp2_max_def(size, size_t);
  23. +nghttp2_max_def(int8, int8_t)
  24. +nghttp2_max_def(int16, int16_t)
  25. +nghttp2_max_def(int32, int32_t)
  26. +nghttp2_max_def(int64, int64_t)
  27. +nghttp2_max_def(uint8, uint8_t)
  28. +nghttp2_max_def(uint16, uint16_t)
  29. +nghttp2_max_def(uint32, uint32_t)
  30. +nghttp2_max_def(uint64, uint64_t)
  31. +nghttp2_max_def(size, size_t)
  32. #define nghttp2_min_def(SUFFIX, T) \
  33. static inline T nghttp2_min_##SUFFIX(T a, T b) { return a < b ? a : b; }
  34. -nghttp2_min_def(int8, int8_t);
  35. -nghttp2_min_def(int16, int16_t);
  36. -nghttp2_min_def(int32, int32_t);
  37. -nghttp2_min_def(int64, int64_t);
  38. -nghttp2_min_def(uint8, uint8_t);
  39. -nghttp2_min_def(uint16, uint16_t);
  40. -nghttp2_min_def(uint32, uint32_t);
  41. -nghttp2_min_def(uint64, uint64_t);
  42. -nghttp2_min_def(size, size_t);
  43. +nghttp2_min_def(int8, int8_t)
  44. +nghttp2_min_def(int16, int16_t)
  45. +nghttp2_min_def(int32, int32_t)
  46. +nghttp2_min_def(int64, int64_t)
  47. +nghttp2_min_def(uint8, uint8_t)
  48. +nghttp2_min_def(uint16, uint16_t)
  49. +nghttp2_min_def(uint32, uint32_t)
  50. +nghttp2_min_def(uint64, uint64_t)
  51. +nghttp2_min_def(size, size_t)
  52. #define lstreq(A, B, N) ((sizeof((A)) - 1) == (N) && memcmp((A), (B), (N)) == 0)