texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Gavin D. Smith
Date: Sun, 13 Oct 2024 15:04:24 -0400 (EDT)

branch: master
commit 7d20eb3f17340e77f17992b707a8e19d83ebe70a
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Oct 13 19:46:39 2024 +0100

    Avoid compiler warning
    
    * info/infokey.c (compile): declare a variable as an int to avoid
    a compiler warning "comparison is always true due to limited
    range of data type" with gcc -Wtype-limits.
    
    Report from Patrice and fix from Eli.
---
 ChangeLog      | 10 ++++++++++
 info/infokey.c |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index ca866b56de..9fcc7ab617 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2024-10-13  Gavin Smith <gavinsmith0123@gmail.com>
+
+       Avoid compiler warning
+
+       * info/infokey.c (compile): declare a variable as an int to avoid
+       a compiler warning "comparison is always true due to limited
+       range of data type" with gcc -Wtype-limits.
+
+       Report from Patrice and fix from Eli.
+
 2024-10-13  Patrice Dumas  <pertusus@free.fr>
 
        * tp/init/documentation_examples.pm (MATHJAX_CONFIGURATION)
diff --git a/info/infokey.c b/info/infokey.c
index da3e3e3024..e27d413629 100644
--- a/info/infokey.c
+++ b/info/infokey.c
@@ -205,7 +205,7 @@ compile (FILE *fp, const char *filename, int 
*suppress_info, int *suppress_ea)
      lengths are arbitrary (and should be large enough) and their
      lengths are not hard-coded anywhere else, so increasing them
      here will not break anything.  */
-  char oval = 0;
+  int oval = 0;
   char comment[10];
   unsigned int clen = 0;
   int seq[20];



reply via email to

[Prev in Thread] Current Thread [Next in Thread]