changeset 29497:8f1cf32ada13

eliminate sign comparison warning from GCC * intprops-wrappers.c: Use GCC diagnostic pragma to disable -Wsign-compare.
author John W. Eaton <jwe@octave.org>
date Tue, 06 Apr 2021 14:25:27 -0400
parents 6f353cc08d75
children 5384bb4efc51
files liboctave/wrappers/intprops-wrappers.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/wrappers/intprops-wrappers.c	Tue Apr 06 14:24:19 2021 -0400
+++ b/liboctave/wrappers/intprops-wrappers.c	Tue Apr 06 14:25:27 2021 -0400
@@ -36,6 +36,10 @@
 // may be caused by the way that gnulib overrides standard library
 // functions.
 
+#if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC)
+#  pragma GCC diagnostic ignored "-Wsign-compare"
+#endif
+
 int
 octave_i_multiply_overflow_wrapper (int a, int b, int *r)
 {