From patchwork Wed Jun 21 21:34:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Cristian_Rodr=C3=ADguez?= X-Patchwork-Id: 1798124 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=mi0Z1zOQ; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QmcH91RxRz20Xk for ; Thu, 22 Jun 2023 07:35:17 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2E99F3858284 for ; Wed, 21 Jun 2023 21:35:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E99F3858284 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687383315; bh=IQZvOpEeKNScoEy8zfDwI+NiQwDB6XBtYcFL8u/zWdU=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=mi0Z1zOQCTaBmcHArzsQGTHgMT6VjOkioRtv7ZjV2QyYERBLQqqE3IgvPyrve0jFl a9joagmoS5u/HlMbRk4+Z2DMzyJYnlKK8MD/IcXsMuD7fodum5eNqiY4tLkP7NBiPX 5qnF3EDPyA4MlIRQr01FW0UjNuxLMEEoEyNrd/sQ= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by sourceware.org (Postfix) with ESMTPS id 5CA6B3858D28 for ; Wed, 21 Jun 2023 21:35:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5CA6B3858D28 Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-3a05637363eso101965b6e.1 for ; Wed, 21 Jun 2023 14:35:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687383299; x=1689975299; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IQZvOpEeKNScoEy8zfDwI+NiQwDB6XBtYcFL8u/zWdU=; b=SHkpufL7UuEp7XzFUd1ZlJn4kyfRmhq32m9TFJMA0+k2H3xuux2reP/88RPnQg3K0R lxtuUmg7L0QBJwXIfV/Nf2NL/No3I4Z75EOuTvVv58CcNMFNU9bXSBvTs0DcWaDtOkPd DBT97nhkJ12zUBLkivdLW7RPeCfHuDeyzSM4o6Bmq3WzYXr8XDFUGMdH0gyktFPBj/X+ Owl7X4j1991AP1JR7rCa19ZcvPFvepeol8nUeehASkiqWmdypK1qwoU8sHE8VfZE5hXM 1cTJ/wpGLVZYFE4S/ZcFa4agFZ+JTVxIhfwTV3LBLyyDnLN/J7O3kMq4BwArArOvs/lM xvvg== X-Gm-Message-State: AC+VfDw+pucxmyi2VK7w5qxnMBFO+B9RX4YS31brhqa/iS82VEvXLsBx QZa7+MulSz4ztOiKuktl35MRZfJOEE1uwBDcjZw= X-Google-Smtp-Source: ACHHUZ4R4siDfH9HSbhChotgI1nU71xTzItZBCoYyVj+EZW/ROmy0Yxt0hxVNLuBZYuLDp9aE42OFQ== X-Received: by 2002:aca:bdc6:0:b0:39a:aa9d:916 with SMTP id n189-20020acabdc6000000b0039aaa9d0916mr11703713oif.4.1687383299497; Wed, 21 Jun 2023 14:34:59 -0700 (PDT) Received: from tumbleweedvm.. (181-162-15-197.baf.movistar.cl. [181.162.15.197]) by smtp.gmail.com with ESMTPSA id a8-20020a056808128800b0039ed142bf3asm2533825oiw.53.2023.06.21.14.34.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 14:34:59 -0700 (PDT) To: libc-alpha@sourceware.org Cc: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Subject: [PATCH 2/5] include: Replace zero-length array "msg" with C99 flexible-array. Date: Wed, 21 Jun 2023 21:34:30 +0000 Message-ID: <20230621213444.2017-1-cristian@rodriguez.im> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Cristian_Rodr=C3=ADguez_via_Libc-alpha?= From: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Reply-To: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Signed-off-by: Cristian Rodríguez --- include/stdlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stdlib.h b/include/stdlib.h index 7deb8193d7..206ceb7435 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -360,7 +360,7 @@ libc_hidden_proto (__qfcvt_r) struct abort_msg_s { unsigned int size; - char msg[0]; + char msg[]; }; extern struct abort_msg_s *__abort_msg; libc_hidden_proto (__abort_msg) From patchwork Wed Jun 21 21:34:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Cristian_Rodr=C3=ADguez?= X-Patchwork-Id: 1798125 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=rH8unng9; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QmcHB0ll2z20Zv for ; Thu, 22 Jun 2023 07:35:17 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 056A83858280 for ; Wed, 21 Jun 2023 21:35:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 056A83858280 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687383316; bh=WtzHLDj9eKPf+1+gnM7UwerxdYBE47/OVu8hBjXKccY=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=rH8unng90T7T07zsWKSSiWOEXQ3wSqKWY7V4r1Dm9HueH7dylPVxokw9hcONupRH6 PK+UcqtSMcRz1dotUp5UBLTFavOrbVxqthiIoe/DMOZQDS2ZljZc90a1frse/qjzii 7HRxPIge5sCtUZUOMOQ6muAIYAGI5gAwa1P/4GT0= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by sourceware.org (Postfix) with ESMTPS id A6F2A3858D35 for ; Wed, 21 Jun 2023 21:35:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A6F2A3858D35 Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-39ea3943c07so474541b6e.1 for ; Wed, 21 Jun 2023 14:35:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687383300; x=1689975300; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WtzHLDj9eKPf+1+gnM7UwerxdYBE47/OVu8hBjXKccY=; b=GopiLquoyVezhy4quqcrOPE8N3I+wrpioMpK+RywBlBxsBQQWlGe1UAvvj52hVPLcW wLqyexwLiUe2oW6mS/lL96af3sk7WZlWQ6U8c2quokOdzezqC767hpELotPOV18HR7pf W3Obv3yMb4aco9haJs4ph+4MNozSK367iQSzry+RKXaTbgFNdrajIY1yJ4gjXwFcLiOZ NxKX20hv77laZnWmtpiZ+NMV3fLItEAQF/VkAim/i8zX8QwHbanzczK0MkopuIKH6kGC ElmwBWhIErzbjQKYBvmHz8QiWK/D6Xi4IIXlMvvdzk2cEQQm2n3xCvZzjuMgv4CTAufk k5Tw== X-Gm-Message-State: AC+VfDyeGPtOnTco4zfbMsVb/BwGxzYJ26QxJA0/UjOvyf2F5F+bVdd0 A1hd5wag+qsjVMDQnyHH9eZOD6dSmnTT4eIYQfc= X-Google-Smtp-Source: ACHHUZ5FUjbekIST3oap02x6W8DZ5TMmJ+qaSMZfM+fHrCJ6MntixXQu47FXc2OCN7zvwXuzJpR95Q== X-Received: by 2002:aca:dec6:0:b0:39c:8498:8159 with SMTP id v189-20020acadec6000000b0039c84988159mr12094624oig.1.1687383300648; Wed, 21 Jun 2023 14:35:00 -0700 (PDT) Received: from tumbleweedvm.. (181-162-15-197.baf.movistar.cl. [181.162.15.197]) by smtp.gmail.com with ESMTPSA id a8-20020a056808128800b0039ed142bf3asm2533825oiw.53.2023.06.21.14.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 14:35:00 -0700 (PDT) To: libc-alpha@sourceware.org Cc: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Subject: [PATCH 3/5] linux: Replace zero-length array with flexible-array member on inotify struct Date: Wed, 21 Jun 2023 21:34:31 +0000 Message-ID: <20230621213444.2017-2-cristian@rodriguez.im> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230621213444.2017-1-cristian@rodriguez.im> References: <20230621213444.2017-1-cristian@rodriguez.im> MIME-Version: 1.0 X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Cristian_Rodr=C3=ADguez_via_Libc-alpha?= From: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Reply-To: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Current kernel versions require a compiler supporting -std=gnu11 and therefore supporting C99 flexible arrays. old versions require a c89 compiler supporting this feature as an extension. Signed-off-by: Cristian Rodríguez --- sysdeps/unix/sysv/linux/sys/inotify.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/sys/inotify.h b/sysdeps/unix/sysv/linux/sys/inotify.h index 1e8e68cd97..535f57e27b 100644 --- a/sysdeps/unix/sysv/linux/sys/inotify.h +++ b/sysdeps/unix/sysv/linux/sys/inotify.h @@ -31,7 +31,7 @@ struct inotify_event uint32_t mask; /* Watch mask. */ uint32_t cookie; /* Cookie to synchronize two events. */ uint32_t len; /* Length (including NULs) of name. */ - char name __flexarr; /* Name. */ + char name[]; /* Name. */ }; From patchwork Wed Jun 21 21:34:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Cristian_Rodr=C3=ADguez?= X-Patchwork-Id: 1798135 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=YeVudmmP; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QmcJ51tMlz20Xk for ; Thu, 22 Jun 2023 07:36:05 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3700E385782B for ; Wed, 21 Jun 2023 21:36:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3700E385782B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687383363; bh=115JRVOe8vMO57898vbjQOKgbtXgI41Mtd+ODP9QdAc=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=YeVudmmPGbFQm86G5uHoFmRlP3RKeDtec9Ct8tpR/zMcj4LDPxroWK4TshitsouG0 mYArA3Ac+5lUHOZ/XFqESLE8lLbyoXde92NoMeNDItaaNMJx6EeseXIuUYdMYZN/Uq VdyVZSCCXEfc6IzZEhR26CECJvAqQ8gEVk6tdor8= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id A02363858D37 for ; Wed, 21 Jun 2023 21:35:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A02363858D37 Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3a03f54cba5so324249b6e.1 for ; Wed, 21 Jun 2023 14:35:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687383302; x=1689975302; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=115JRVOe8vMO57898vbjQOKgbtXgI41Mtd+ODP9QdAc=; b=AXuw1zKtB+DqNhj83fpgg1HsYMAl5SErTAY2wgTK5A74vyXDBS+mckB420X4FVb9AE y0TgMh8k8YZCuGdJVpWGf3LppCuh4rrX8DppVKGOokJnstf4UxxOKlrrVAjuvxjfkdEl I+DBV0yB8kv966FZgdCHe7ylIjSWZ0r47Ldn4zg+UI+uSifvstLahGeOF0yByb9BsHyf 4p/yGMWvlZ7eMhtCw8ND/vrpzjXXBfUu6RYpk9FPb4V/xUDDBiNATHYb5QM6/Ap0U124 CgWBe2N9XgCmuupGgxo3XgmQ1SaItXubxU4qC4tDsZTgxq6px6ImdzI5FaVi3M5wxDgb hF7A== X-Gm-Message-State: AC+VfDwvAIip+kdTRhTQBthsI4fuqW2cHnQ3Jwlt+ekw5pF3dwSTq5kj 5/9LNx0lSoMiru1h1JlRGAHUi0ehzAbeaKjxVRk= X-Google-Smtp-Source: ACHHUZ4gzGT5qpuIoP/vlsQ+r828Huri7hLU4nhu+PHqT64SNtyEzHXAxm4uORQB6kwO3AJnLywudA== X-Received: by 2002:aca:bd54:0:b0:3a0:457f:4412 with SMTP id n81-20020acabd54000000b003a0457f4412mr2678009oif.5.1687383301854; Wed, 21 Jun 2023 14:35:01 -0700 (PDT) Received: from tumbleweedvm.. (181-162-15-197.baf.movistar.cl. [181.162.15.197]) by smtp.gmail.com with ESMTPSA id a8-20020a056808128800b0039ed142bf3asm2533825oiw.53.2023.06.21.14.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 14:35:01 -0700 (PDT) To: libc-alpha@sourceware.org Cc: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Subject: [PATCH 4/5] linux: Replace zero-length array with flexible-array member on struct dirstream Date: Wed, 21 Jun 2023 21:34:32 +0000 Message-ID: <20230621213444.2017-3-cristian@rodriguez.im> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230621213444.2017-1-cristian@rodriguez.im> References: <20230621213444.2017-1-cristian@rodriguez.im> MIME-Version: 1.0 X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Cristian_Rodr=C3=ADguez_via_Libc-alpha?= From: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Reply-To: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" The linux kernel has always required a compiler supporting c99 flexible-arrays. Signed-off-by: Cristian Rodríguez --- sysdeps/unix/sysv/linux/dirstream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/dirstream.h b/sysdeps/unix/sysv/linux/dirstream.h index 3cb313b410..20ce7d1347 100644 --- a/sysdeps/unix/sysv/linux/dirstream.h +++ b/sysdeps/unix/sysv/linux/dirstream.h @@ -47,7 +47,7 @@ struct __dirstream sufficient because dirents on 32-bit platforms can require 64-bit alignment. We use "long double" here to be consistent with what malloc uses. */ - char data[0] __attribute__ ((aligned (__alignof__ (long double)))); + char data[] __attribute_nonstring__ __attribute__ ((aligned (__alignof__ (long double)))); }; #define _DIR_dirfd(dirp) ((dirp)->fd) From patchwork Wed Jun 21 21:34:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Cristian_Rodr=C3=ADguez?= X-Patchwork-Id: 1798126 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=vXA9bmpd; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QmcHG3smKz20Xk for ; Thu, 22 Jun 2023 07:35:22 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 682353857714 for ; Wed, 21 Jun 2023 21:35:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 682353857714 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687383320; bh=TPT5Dw3ksr5W0nkahuFQtrmgK3M3DhQIOHT/e5gsIsQ=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=vXA9bmpdZR2ZJjTqYAhSz/tfRhzu5xw6cLtSRrrDU7G1zJV3ZdWxsgSRV9qi1HI0c gwJfXC3athciJ/WQGrUMotpXYc0lvgzyg+t58nzqZ3UZyz2kGIec6QJiLeyr6Ps2R1 RuIBItv5sYhTCQ1Yq21pRSCFE8wA2uVgp3u29+rY= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id C2DAE3858C1F for ; Wed, 21 Jun 2023 21:35:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C2DAE3858C1F Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-39ea3943c07so474544b6e.1 for ; Wed, 21 Jun 2023 14:35:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687383303; x=1689975303; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TPT5Dw3ksr5W0nkahuFQtrmgK3M3DhQIOHT/e5gsIsQ=; b=KjMOVbmmCkoQ9fn3vOgBaH5jAf4nWlMVC1n74YEFC7kZWY9cO4QFjhNG2kOr5uG4OO 8LCy96c3SP0jdIUe6+pudP1Kh480OZEnHlemgZPVO2LQmiboqlzSANUa3Z08KhpZ+Ugv xOdE5XnFyGfm2MuN5kUJqn4uUPoy6I+qM45AyeumRp4zop922YCt/AzjCb+QpBXn4KT/ BFWl0V8+6S0+58jV4joVKK5oWwFjHFji4tYBiiAecbGdLmcB8AXforzEAkKaZJgMKIkS ZiH68N3ISNWgcu5CrpPmMqDPOzcwpPjMdowBWnyOjAXO9nux8kLu9ybyHr+yBwo8uzgV Wzeg== X-Gm-Message-State: AC+VfDxr1xPMr9h8XC+j2QW3FcyzsTmkhJirqMvNc/3db/oCmMqiJxWK mVs8yAx+Nl/oIcAPkse6K3LBOK6Nk4q0FsB9jG8= X-Google-Smtp-Source: ACHHUZ6ZYFmbkfGscVOH7eyAX7uCU9OVLECUXZhDIQ+DBwY80mf9VFR9U2W2VFUhM7DMp2yjvYiRqA== X-Received: by 2002:aca:b9d7:0:b0:398:99e7:b08 with SMTP id j206-20020acab9d7000000b0039899e70b08mr13860531oif.5.1687383303019; Wed, 21 Jun 2023 14:35:03 -0700 (PDT) Received: from tumbleweedvm.. (181-162-15-197.baf.movistar.cl. [181.162.15.197]) by smtp.gmail.com with ESMTPSA id a8-20020a056808128800b0039ed142bf3asm2533825oiw.53.2023.06.21.14.35.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 14:35:02 -0700 (PDT) To: libc-alpha@sourceware.org Cc: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Subject: [PATCH 5/5] stdio-common: Replace zero-length array with flexible-array member Date: Wed, 21 Jun 2023 21:34:33 +0000 Message-ID: <20230621213444.2017-4-cristian@rodriguez.im> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230621213444.2017-1-cristian@rodriguez.im> References: <20230621213444.2017-1-cristian@rodriguez.im> MIME-Version: 1.0 X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Cristian_Rodr=C3=ADguez_via_Libc-alpha?= From: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Reply-To: =?utf-8?q?Cristian_Rodr=C3=ADguez?= Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Signed-off-by: Cristian Rodríguez --- stdio-common/reg-modifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdio-common/reg-modifier.c b/stdio-common/reg-modifier.c index a52022d1ba..d957d85a5f 100644 --- a/stdio-common/reg-modifier.c +++ b/stdio-common/reg-modifier.c @@ -27,7 +27,7 @@ struct printf_modifier_record { struct printf_modifier_record *next; int bit; - wchar_t str[0]; + wchar_t str[]; }; struct printf_modifier_record **__printf_modifier_table attribute_hidden;