git: 7ea9ac99e171 - main - libc: Add a man page caveat about the `w` modifier
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Oct 2026 13:46:12 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=7ea9ac99e171bb2b6e425e4b4af728f4783ab07c
commit 7ea9ac99e171bb2b6e425e4b4af728f4783ab07c
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-10-21 15:22:19 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-10-26 13:46:02 +0000
libc: Add a man page caveat about the `w` modifier
In-tree Clang is unaware of the N2680 fixed-width modifier `w` and emits
a warning when used.
PR: 299631
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D60939
---
lib/libc/stdio/printf.3 | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3
index b421a2a0985d..7f38338f5edc 100644
--- a/lib/libc/stdio/printf.3
+++ b/lib/libc/stdio/printf.3
@@ -392,6 +392,12 @@ conversion:
.It Sy Modifier Ta Cm c Ta Cm s
.It Cm l No (ell) Ta Vt wint_t Ta Vt "wchar_t *"
.El
+.Pp
+Compiler support for the
+.Cm w
+fixed-width integer type modifier is limited, and compilers may produce a
+warning when used (depending on compiler version and language standard
+settings).
.It
A character that specifies the type of conversion to be applied.
.El