public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Florian Weimer <fw@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc/release/2.34/master] resolv: Fix building tst-resolv-invalid-cname for earlier C standards Date: Wed, 21 Sep 2022 18:01:45 +0000 (GMT) [thread overview] Message-ID: <20220921180145.0FB7B3858282@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=044755e2faeeca13bb77b2e9e638a45e6e90a5fa commit 044755e2faeeca13bb77b2e9e638a45e6e90a5fa Author: Florian Weimer <fweimer@redhat.com> Date: Tue Aug 30 13:30:03 2022 +0200 resolv: Fix building tst-resolv-invalid-cname for earlier C standards This fixes this compiler error: tst-resolv-invalid-cname.c: In function ‘test_mode_to_string’: tst-resolv-invalid-cname.c:164:10: error: label at end of compound statement case test_mode_num: ^~~~~~~~~~~~~ Fixes commit 9caf782276ecea4bc86fc94fbb52779736f3106d ("resolv: Add new tst-resolv-invalid-cname"). (cherry picked from commit d09aa4a17229bcaa2ec7642006b12612498582e7) Diff: --- resolv/tst-resolv-invalid-cname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolv/tst-resolv-invalid-cname.c b/resolv/tst-resolv-invalid-cname.c index ae2d4419b1..63dac90e02 100644 --- a/resolv/tst-resolv-invalid-cname.c +++ b/resolv/tst-resolv-invalid-cname.c @@ -162,7 +162,7 @@ test_mode_to_string (enum test_mode mode) case gai_canon: return "gai_canon"; case test_mode_num: - /* Report error below. */ + break; /* Report error below. */ } FAIL_EXIT1 ("invalid test_mode: %d", mode); }
reply other threads:[~2022-09-21 18:01 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=20220921180145.0FB7B3858282@sourceware.org \ --to=fw@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).