public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Szabolcs Nagy <nsz@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] TODO: cheri: printf: fix unused variable warning Date: Wed, 12 Oct 2022 14:16:00 +0000 (GMT) [thread overview] Message-ID: <20221012141600.4D61B3860776@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=94f15a42317a78481fd7eae415503e63671ae2ba commit 94f15a42317a78481fd7eae415503e63671ae2ba Author: Szabolcs Nagy <szabolcs.nagy@arm.com> Date: Mon Oct 10 13:34:36 2022 +0100 TODO: cheri: printf: fix unused variable warning warning happens in non-purecap build. TODO: squash into original cheri printf change Diff: --- stdio-common/vfprintf-internal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdio-common/vfprintf-internal.c b/stdio-common/vfprintf-internal.c index 6bda3a2b27..c2f1904b7d 100644 --- a/stdio-common/vfprintf-internal.c +++ b/stdio-common/vfprintf-internal.c @@ -812,6 +812,7 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap, unsigned int mode_flags) int is_char = 0; /* Argument is promoted (unsigned) char. */ int width = 0; /* Width of output; 0 means none specified. */ int prec = -1; /* Precision of output; -1 means none specified. */ + __attribute__((unused)) int is_cap = 0; /* Argument is a capability. */ /* This flag is set by the 'I' modifier and selects the use of the @@ -1350,6 +1351,7 @@ printf_positional (FILE *s, const CHAR_T *format, int readonly_format, int is_long = specs[nspecs_done].info.is_long; int width = specs[nspecs_done].info.width; int prec = specs[nspecs_done].info.prec; + __attribute__((unused)) int is_cap = specs[nspecs_done].info.is_cap; int use_outdigits = specs[nspecs_done].info.i18n; char pad = specs[nspecs_done].info.pad;
reply other threads:[~2022-10-12 14:16 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221012141600.4D61B3860776@sourceware.org \ --to=nsz@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).