]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
string-desc: Fix a compiler warning.
authorBruno Haible <bruno@clisp.org>
Wed, 18 Jun 2025 23:26:45 +0000 (01:26 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 18 Jun 2025 23:26:45 +0000 (01:26 +0200)
* lib/string-desc.h (sd_overwrite): Remove 'return' keyword.

ChangeLog
lib/string-desc.h

index a78831f4fc721fecfa2bf8e392139bb32fb6b346..bf1fea6a0594f7450ae134466223e6ebcd49ae8c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-06-18  Bruno Haible  <bruno@clisp.org>
+
+       string-desc: Fix a compiler warning.
+       * lib/string-desc.h (sd_overwrite): Remove 'return' keyword.
+
 2025-06-16  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool: Default to --single-configure. New option --two-configures.
index adbb1e6a2e49a80a49add3860b5d4fb715ae0d35..6887c99d5edf6cc2701505f2cc1f4e078d845f12 100644 (file)
@@ -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