espeak-ng-fix-699.patch 716 B

1234567891011121314151617181920212223
  1. From e11cd42b03d1628f7a0cf45c9406123282e25c63 Mon Sep 17 00:00:00 2001
  2. From: "Reece H. Dunn" <msclrhd@gmail.com>
  3. Date: Thu, 9 Jan 2020 21:11:42 +0000
  4. Subject: [PATCH] fix #699: avoid samplerate clashing with LTO in gcc 10.
  5. ---
  6. src/espeak-ng.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/src/espeak-ng.c b/src/espeak-ng.c
  9. index 10b8a8879..3a7838cf9 100644
  10. --- a/src/espeak-ng.c
  11. +++ b/src/espeak-ng.c
  12. @@ -117,7 +117,7 @@ static const char *help_text =
  13. "--load Load voice from a file in current directory by name.\n"
  14. "-h, --help Show this help.\n";
  15. -int samplerate;
  16. +static int samplerate;
  17. bool quiet = false;
  18. unsigned int samples_total = 0;
  19. unsigned int samples_split = 0;