[openssh-commits] [openssh] branch master updated: skip ("#if 0") strvisx and stravis

git+noreply at mindrot.org git+noreply at mindrot.org
Mon May 4 16:06:38 AEST 2026


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

The following commit(s) were added to refs/heads/master by this push:
     new 328993c89 skip ("#if 0") strvisx and stravis
328993c89 is described below

commit 328993c8991e5cde61f5abf1b87b26fa2537ae6c
Author: Damien Miller <djm at mindrot.org>
AuthorDate: Mon May 4 16:05:34 2026 +1000

    skip ("#if 0") strvisx and stravis
    
    we don't use the in OpenSSH and some compilers throw warnings
    compiling them that break -Werror
---
 openbsd-compat/vis.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/openbsd-compat/vis.c b/openbsd-compat/vis.c
index 0e04ed025..c216282e8 100644
--- a/openbsd-compat/vis.c
+++ b/openbsd-compat/vis.c
@@ -213,6 +213,7 @@ strnvis(char *dst, const char *src, size_t siz, int flag)
 	return (dst - start);
 }
 
+#if 0 /* unused in OpenSSH */
 int
 stravis(char **outp, const char *src, int flag)
 {
@@ -247,5 +248,6 @@ strvisx(char *dst, const char *src, size_t len, int flag)
 	*dst = '\0';
 	return (dst - start);
 }
+#endif /* unused */
 
 #endif

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list