0002-makehrtf-Disable-Wstringop-truncation.patch 961 B

1234567891011121314151617181920212223242526272829
  1. From 07ef86e33ed6f7585f0dfaa1732ea17c816655a4 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Mon, 14 Jan 2019 11:45:42 -0800
  4. Subject: [PATCH] makehrtf: Disable Wstringop-truncation
  5. Upstream-Status: Inappropriate [Should be fixed in code]
  6. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  7. ---
  8. utils/makemhr/makemhr.cpp | 2 ++
  9. 1 file changed, 2 insertions(+)
  10. --- a/utils/makemhr/makemhr.cpp
  11. +++ b/utils/makemhr/makemhr.cpp
  12. @@ -161,6 +161,7 @@ enum ChannelIndex : uint {
  13. * pattern string are replaced with the replacement string. The result is
  14. * truncated if necessary.
  15. */
  16. +#pragma GCC diagnostic ignored "-Wstringop-truncation"
  17. static int StrSubst(const char *in, const char *pat, const char *rep, const size_t maxLen, char *out)
  18. {
  19. size_t inLen, patLen, repLen;
  20. @@ -199,6 +200,7 @@ static int StrSubst(const char *in, cons
  21. return !truncated;
  22. }
  23. +#pragma GCC diagnostic pop
  24. /*********************
  25. *** Math routines ***