From patchwork Fri Jan 22 17:21:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 1430867 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DNlb72JcRz9sVr for ; Sun, 24 Jan 2021 18:52:35 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ST6WCmwF; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4DNlb716vNzDqcG for ; Sun, 24 Jan 2021 18:52:35 +1100 (AEDT) X-Original-To: slof@lists.ozlabs.org Delivered-To: slof@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2a00:1450:4864:20::632; helo=mail-ej1-x632.google.com; envelope-from=philippe.mathieu.daude@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ST6WCmwF; dkim-atps=neutral Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4DMmJt64gWzDqCC for ; Sat, 23 Jan 2021 04:21:40 +1100 (AEDT) Received: by mail-ej1-x632.google.com with SMTP id a10so8724863ejg.10 for ; Fri, 22 Jan 2021 09:21:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3YryQ5HkgTtwO3UmqAE4CHg9WOCVteJUFbcci93iBo4=; b=ST6WCmwFZGhsFC9y4YhRFvMvvNgePz7PkS8WA84uW6R95DGG9RB6frHVZ8v1nN0HFf 36wF/CP0yDM8auFabuagtvTHfrltpoabKnSs+lXAnsNNNNSXnymEcwlEQCto/JEG08nq DlJ29Uj9/+qly6aWoqRJ45t8SRoWkO/Y9ZEuOwQF0X/6gD68eEjAI545xjd6kABo9F5e Y0PdKVFuNwGHTGJTMOU5SnFCvSa7a9sqp16oQtYD25obhYg3/8llXo4UerURYck1X939 MOdrmiZcDEZ31X5R8lA2DNOsl96kP/OCNGsBGB2PFhYYa366PIg3Npi7tIAV3AG2imKj nC5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=3YryQ5HkgTtwO3UmqAE4CHg9WOCVteJUFbcci93iBo4=; b=pGZy+To2KwPrzcZnGOWHGnNklt+Ixy8PeCx1bnAo1NESBvH0C9mKseBXHgdhXaTmEg 5eVNBr8INV+wWBCEvR30Jx+yCjDlVS5IBDvg57AxxujmoKvxIc0D+XJVI6gFG86FsPA2 MK7bGc74tRtNF4DSRQcOsnUXm5DGAOS0BBUEOGLNLC354d1ul2ehIeZT4f7K4aOoAnku Nne3QXrFdRx41Sw9V0Rn7yBZ8ccHBpjUj1oM0c77xGfbFD46hRzrVmEXsn357ZssgmW2 9msxID4M9vt2SbUe6kHNYi7LxhEmUEkagP1e6u/Ln5d3wVJcpLIYDYWeu6IGYRnO6GYQ eDiQ== X-Gm-Message-State: AOAM530lruSpIh6UILm0EAreEjeYPla0kWrv2uJzbAqsxKgNihlztfj4 zAXa38rX1PRNTY8M4cJAEwglE4sbMKw= X-Google-Smtp-Source: ABdhPJxQUAE0PYJy3OnLYXF00l3v2hroSDZ7bbkyfAySwGywQGc5lry8dyiTMMN6UgLulJYXvq0ZyA== X-Received: by 2002:a17:906:36da:: with SMTP id b26mr3588365ejc.28.1611336095139; Fri, 22 Jan 2021 09:21:35 -0800 (PST) Received: from x1w.redhat.com (13.red-83-57-169.dynamicip.rima-tde.net. [83.57.169.13]) by smtp.gmail.com with ESMTPSA id t9sm4838999ejc.51.2021.01.22.09.21.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jan 2021 09:21:34 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: slof@lists.ozlabs.org Date: Fri, 22 Jan 2021 18:21:33 +0100 Message-Id: <20210122172133.2074177-1-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 24 Jan 2021 18:52:33 +1100 Subject: [SLOF] [PATCH] libc: Add missing fallthrough annotation X-BeenThere: slof@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Patches for https://github.com/aik/SLOF" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "SLOF" Silence warning when cross-compiling with GCC on Debian 10: $ s390x-linux-gnu-gcc --version s390x-linux-gnu-gcc (Debian 8.3.0-2) 8.3.0 lib/libc/stdio/vsnprintf.c: In function 'print_format': lib/libc/stdio/vsnprintf.c:165:11: warning: this statement may fall through [-Wimplicit-fallthrough=] upper = true; ~~~~~~^~~~~~ lib/libc/stdio/vsnprintf.c:166:4: note: here case 'x': ^~~~ Signed-off-by: Philippe Mathieu-Daudé --- lib/libc/stdio/vsnprintf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libc/stdio/vsnprintf.c b/lib/libc/stdio/vsnprintf.c index 21dd04d..f292dd8 100644 --- a/lib/libc/stdio/vsnprintf.c +++ b/lib/libc/stdio/vsnprintf.c @@ -163,6 +163,7 @@ print_format(char **buffer, size_t bufsize, const char *format, void *var) break; case 'X': upper = true; + /* fall through */ case 'x': sizec[i] = '\0'; value = (unsigned long) var & convert[length_mod];