The AIX xlc compiler gives this warning:

"../../../gettext-tools/gnulib-lib/string-desc.h", line 674.24: 1506-1332 (W) A 
function with return type "void" may not return a value of type "void".

Fixed like this:


2025-06-18  Bruno Haible  <br...@clisp.org>

        string-desc: Fix a compiler warning.
        * lib/string-desc.h (sd_overwrite): Remove 'return' keyword.

diff --git a/lib/string-desc.h b/lib/string-desc.h
index adbb1e6a2e..6887c99d5e 100644
--- a/lib/string-desc.h
+++ b/lib/string-desc.h
@@ -671,7 +671,7 @@ extern void _sd_overwrite (rw_string_desc_t s, idx_t start,
 GL_STRING_DESC_INLINE void
 sd_overwrite (rw_string_desc_t s, idx_t start, string_desc_t t)
 {
-  return _sd_overwrite (s, start, t._nbytes, t._data);
+  _sd_overwrite (s, start, t._nbytes, t._data);
 }
 #endif
 




Reply via email to