From patchwork Tue Dec 20 14:42:18 2022 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: 635469 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2954911pvb; Tue, 20 Dec 2022 06:43:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf6jyTzVFwBAH6ce0gF0YM5wmiIB720RRq0jLGh2d/7SNPg9Jl7ilC+eLswcB5twx/TkWLcw X-Received: by 2002:a05:6122:2cd:b0:3bc:a539:fda2 with SMTP id k13-20020a05612202cd00b003bca539fda2mr24844178vki.8.1671547434880; Tue, 20 Dec 2022 06:43:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671547434; cv=none; d=google.com; s=arc-20160816; b=f4qqytEnHFgFRYmNg1QGEvxmw4+8Mk89UjvHqpsnhRkmV2H11o14vxcz1q4Sl9wIey dpJgx2A1RNlqbiCC4ucNPVIzRW8zTDU2vCWXw90oWMOdKHHLEGI3emOhXTGzqwm5xpDg vVOowOeLZw45ZG6Bq7ZTbG49e4+F2OV5I6HyPaiwZP52vmTopGmVoYbq7DwUFIFeMqrc 9wYoS9xjbUGN3hIesWczpQa7WKf3tyw0yZXXDKMTTQfiQJcSEb1mnLei7nOj6Rur6KSx T5C5ouUiOAlNbaeNv8ZjKi6ZMZxNaIT1kxPUyHgJGZcJjSTDd4WzkFlEdAdJl5ZWX0ql Iz9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BR/sZFMBpjOuj74wzBKHaxO4GKg6uBrTeq/EpP8NU00=; b=gvJi9e0dEgdSaj2RcGsYbChCzKsZp2+TuwKUQ5Pg49d/jrDvspcfd3lGxsYDMGsWV3 EEB3CXIK/IU110PHa6cWYxk2iscpmf5uZyT78fTtdNKiJssj5I+A6XqVX4rT62TwYJJ7 HmIAuzvHzN159fg7ZEtWU2X9g/K34miZytZJnYCu5aNq1InpIXUlwxaX9aBDCZazoQkM dfs7JnOW5ry+nyYBfScEPU0iC6JJCi7OPiWf4Mnl5DIGVjV+S356UthfXVREqGeqerp1 clw64+E9A1ykhIfYxbWogqJbeQQJiyL3TVS/gbZJMxY+H2yKBWZdK3UwSYBEZ7SVzdCC PrJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JvkQRzEM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q123-20020a378e81000000b006fa16626566si5008810qkd.515.2022.12.20.06.43.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Dec 2022 06:43:54 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JvkQRzEM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7dpA-0000mn-9B; Tue, 20 Dec 2022 09:42:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7dp8-0000la-8S for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:42:30 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7dp6-000249-JE for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:42:29 -0500 Received: by mail-wm1-x32f.google.com with SMTP id b24-20020a05600c4a9800b003d21efdd61dso8965917wmp.3 for ; Tue, 20 Dec 2022 06:42:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BR/sZFMBpjOuj74wzBKHaxO4GKg6uBrTeq/EpP8NU00=; b=JvkQRzEMMcbZt82nc/XhfFCg6gZFwPzBF0/7jPwTXxkp6PC15XR4Ge4UWWXC2XPbFz o22SKWvkUPbv3tzWFZ3KQNHS8E/Rsf83liYptvoiqtnt/yoORDCdY0/7UdnFFrLdr82v AkAXwSmtIaPDa9LD2NCLjmKGkOrtlxKj6CjHRPGMFiFSTbUkbxo1SMDCsG7hXsUf/905 vkR9P8o3j90eV7H9NrtqbwArcITSWBCKhho3Hup3nIvfZwJLUCmyEBeAWkzIy/9C3Yof V7PHWEkSQ+9xz4wKZaJO80Cq60bCFYy3ruM2yveXEEQKB1fJm5GRiK5K02QekprIiZEG 5vfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=BR/sZFMBpjOuj74wzBKHaxO4GKg6uBrTeq/EpP8NU00=; b=7lbPHqY1nmVS8IYkFCxBBcVG5GFx0H1c1WpNDYMbEdz2BggpY/t0/lo8z+3e97CDJm fDyEgUui7Rh4JO67peWFbqbNKnVq6hgbggE1QCz3eUE6i+U7ehkzfOFX/y7QasDgGYOr TVLY/xTvxu7U9a822L3kCQqybXaScAQZzrjUfcVlPFYOYxa/7YStMgFcrejns8hbPrtC reqLBSKX8/+enZCp/cct/wuH9E0YpdzTOhMJKmfUM0N1BVtUO0cMRUFOQj9/LlmIIqpB 92EZK9h5FxQM2grSazGVIRxVTa6Za5VgCdNQwQWZjtu8IWCMMl8N15mcJ+nExATVjiwh nDAw== X-Gm-Message-State: ANoB5pl75Yp97an9uokNlceC1hbr4gZYJdSI1hYET4GAG1aY4mjJxwYg ntZdlbrbGfT7EOiBGFfLltGT66fbSwc8ihG/q60= X-Received: by 2002:a05:600c:35ce:b0:3d1:c8e3:2452 with SMTP id r14-20020a05600c35ce00b003d1c8e32452mr36184199wmq.30.1671547347541; Tue, 20 Dec 2022 06:42:27 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id bn22-20020a056000061600b002366e3f1497sm13131207wrb.6.2022.12.20.06.42.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 20 Dec 2022 06:42:26 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH 1/2] linux-user/syscall: Silent -Wmissing-field-initializers warnings Date: Tue, 20 Dec 2022 15:42:18 +0100 Message-Id: <20221220144219.25254-2-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221220144219.25254-1-philmd@linaro.org> References: <20221220144219.25254-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Silent when compiling with -Wextra: In file included from ../../linux-user/syscall.c:5742: ../linux-user/ioctls.h:694:3: warning: missing field 'access' initializer [-Wmissing-field-initializers] IOCTL_IGNORE(TIOCSTART) ^ ../linux-user/syscall.c:5741:31: note: expanded from macro 'IOCTL_IGNORE' { TARGET_ ## cmd, 0, #cmd }, ^ ../linux-user/syscall.c:5743:13: warning: missing field 'name' initializer [-Wmissing-field-initializers] { 0, 0, }, ^ ../linux-user/syscall.c:12949:44: warning: missing field 'sigev_signo' initializer [-Wmissing-field-initializers] struct sigevent host_sevp = { {0}, }, *phost_sevp = NULL; ^ Signed-off-by: Philippe Mathieu-Daudé --- linux-user/syscall.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 1f8c10f8ef..f3ab6bf5a6 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5738,9 +5738,9 @@ IOCTLEntry ioctl_entries[] = { #define IOCTL_SPECIAL(cmd, access, dofn, ...) \ { TARGET_ ## cmd, cmd, #cmd, access, dofn, { __VA_ARGS__ } }, #define IOCTL_IGNORE(cmd) \ - { TARGET_ ## cmd, 0, #cmd }, + { TARGET_ ## cmd, 0, #cmd, 0, NULL, { } }, #include "ioctls.h" - { 0, 0, }, + { /* end of list */ } }; /* ??? Implement proper locking for ioctls. */ @@ -12946,7 +12946,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, { /* args: clockid_t clockid, struct sigevent *sevp, timer_t *timerid */ - struct sigevent host_sevp = { {0}, }, *phost_sevp = NULL; + struct sigevent host_sevp = { }, *phost_sevp = NULL; int clkid = arg1; int timer_index = next_free_host_timer(); @@ -12993,7 +12993,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, ret = -TARGET_EINVAL; } else { timer_t htimer = g_posix_timers[timerid]; - struct itimerspec hspec_new = {{0},}, hspec_old = {{0},}; + struct itimerspec hspec_new = { }, hspec_old = { }; if (target_to_host_itimerspec(&hspec_new, arg3)) { return -TARGET_EFAULT; @@ -13019,7 +13019,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, ret = -TARGET_EINVAL; } else { timer_t htimer = g_posix_timers[timerid]; - struct itimerspec hspec_new = {{0},}, hspec_old = {{0},}; + struct itimerspec hspec_new = { }, hspec_old = { }; if (target_to_host_itimerspec64(&hspec_new, arg3)) { return -TARGET_EFAULT; From patchwork Tue Dec 20 14:42:19 2022 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: 635468 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2954910pvb; Tue, 20 Dec 2022 06:43:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXvl4cBJYVBizdygqHY0SHTyXF5QbU1IKeW+3/kLU1woDs5Ip6Z5VPa7IhieIUoNfDsiEDrZ X-Received: by 2002:a05:622a:250e:b0:3a9:8b48:f8f with SMTP id cm14-20020a05622a250e00b003a98b480f8fmr10688095qtb.67.1671547434782; Tue, 20 Dec 2022 06:43:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671547434; cv=none; d=google.com; s=arc-20160816; b=m5nFyR2yBlMIpcp/rHXJTDgumncRGRIY5TqJil2M87dIkWy+mv3SQzS4vv+6qU+eJ1 +tdzGTDh8hA182J5VzKezyGqHX4oe1oCLzRMJUlecQai82xrJDKdXX8aHjV466XgSanS Gp/rFHz8ZStZVBwZce7mqkPCl6WWEVY8I7R2KiHgH4DrFd5pHhADCDmDW1lJEDEHhsbA fpDdSzjZoUmIenfaxaIJFvp3hIskrefu1ck5G9Y2l+ujzucmFMbMgu6C7NBTqa4A5VuC VM7mdbza8toUT5hdKJLA8YyrsEPFoyFh3PItlS8wd6Kg0dB3fomNyVy0vmRVGgbj6Yes Zxkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=21i+uKYRqisONemNjzePTCowH1RWWMbrnew9/U3Xawo=; b=KInVGfSUY3iPjBO5Z/p/GmMRsVoD7551bc8GpuovZvyDbVvc3EicjnJ+D+y0MGeLZt VKvM9mPSALYGllx/Bg8qiAgLZTY36zsd1hPHXh8TE1AfAs2pOpDNrZmqt3WPBXCv51d1 Ex0vFLgaxuZOd1Q6XsiPGmdF6JdncHA68p6bwnplGrv001f8/KSAuWRYuzZ8prX0yvSh Q+Xwf75yd1dPkYdoAatVXTmj53vfQ1Qq2yyKpbpBDcbvfcd+CC5zlpDhR2OWaDRQf+Nh cAGryhpowgDozs2/HcUvceoDKMnwN/aoD0f+moiRHsQzbcaPqi+8Y7XkUtKrcZKk5CR+ LpNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=REDw6qCp; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id i7-20020a05622a08c700b003a98064981csi3653426qte.530.2022.12.20.06.43.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Dec 2022 06:43:54 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=REDw6qCp; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7dpH-0000oX-71; Tue, 20 Dec 2022 09:42:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7dpF-0000nr-1G for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:42:37 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p7dpC-00024b-UP for qemu-devel@nongnu.org; Tue, 20 Dec 2022 09:42:36 -0500 Received: by mail-wr1-x432.google.com with SMTP id o5so11959545wrm.1 for ; Tue, 20 Dec 2022 06:42:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=21i+uKYRqisONemNjzePTCowH1RWWMbrnew9/U3Xawo=; b=REDw6qCpkEhmAb0ihany76rUBCOJwAE1ow/0C6kEvD8ok/0pU5stIcbpO7TBgx0+H0 isht/21oIp53akDgN8W7BZM5Mg2JNzrEnOEQU8SFLt6IrVC/Yqno22s9FMpB7yvEn6B4 nT0p9tF1H0OzuaOsTbZg3nU7n7E/BanHA4clm3aNy+ezPFjOkUY+tfaofgVI8fK2Zedw +0ptiyHI1oseystPh+PRLubkFSKkrzdwvY5Gsj8Z753DZ4UGcZBKfC3ax/1rjiZ0ajRn +dWZItgJ2uBI/Ka3UzZDbJcVRwJnBe6alVtZshEdMEqqYDdYstVyQPwpqF0te5SjrwX8 QlAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=21i+uKYRqisONemNjzePTCowH1RWWMbrnew9/U3Xawo=; b=H9gghd7VAb1vpvkP0Kv1xQWqyZjqL6mMJO/1YO6y1u/7ulCd8pBmw5S29NYsu8sECj LSyDMIxgBXWaAHx3LyS0z/qPgvq9Wxs17uv5fn4LMxm2Lb250w+NVgYo166+f79krWz4 XAw6pI8hmRzo/8ToQg+lTCZAx0zufpZU5kZIj75aFp9PRxeOvHA9gZggBLen17FlJs5Y L2Ym2Z+d42Ry186IRHJUNXCtgz+BSY8HOba+HO5Sv5fjjekW/IPBTRseUNUC6pnxhOSA /0fESgGIfexkj21UpPGU48S16YkdDdfuCRxZOizfMAXRfbri5+ipK9GLtqBLvuFVJXH4 NVrQ== X-Gm-Message-State: AFqh2kok5ncQ+RTRaKxJUErxG1EHndWliumDWuEgkG8Q3VBG6klscF1G W1QMkQMZZFp0IjfIMb6NwZXj2JwU8RPlqZWUuiE= X-Received: by 2002:a5d:5b1a:0:b0:249:3f48:6040 with SMTP id bx26-20020a5d5b1a000000b002493f486040mr1602458wrb.21.1671547352567; Tue, 20 Dec 2022 06:42:32 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id bs29-20020a056000071d00b002420d51e581sm7346803wrb.67.2022.12.20.06.42.31 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 20 Dec 2022 06:42:31 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH 2/2] linux-user/signal: Silent -Winitializer-overrides warnings Date: Tue, 20 Dec 2022 15:42:19 +0100 Message-Id: <20221220144219.25254-3-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221220144219.25254-1-philmd@linaro.org> References: <20221220144219.25254-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=philmd@linaro.org; helo=mail-wr1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org The target SIGIOT signal is sometimes aliased with SIGABRT, producing the following warning when compiling with -Wextra: ../linux-user/signal.c:57:9: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] MAKE_SIGNAL_LIST ^~~~~~~~~~~~~~~~ ../linux-user/signal-common.h:165:9: note: expanded from macro 'MAKE_SIGNAL_LIST' MAKE_SIG_ENTRY_SIGIOT ^~~~~~~~~~~~~~~~~~~~~ ../linux-user/signal-common.h:128:41: note: expanded from macro 'MAKE_SIG_ENTRY_SIGIOT' #define MAKE_SIG_ENTRY_SIGIOT MAKE_SIG_ENTRY(SIGIOT) ^~~~~~~~~~~~~~~~~~~~~~ ../linux-user/signal.c:56:41: note: expanded from macro 'MAKE_SIG_ENTRY' #define MAKE_SIG_ENTRY(sig) [sig] = TARGET_##sig, ^~~~~~~~~~~~ :81:1: note: expanded from here TARGET_SIGIOT ^~~~~~~~~~~~~ ../linux-user/sh4/../generic/signal.h:26:34: note: expanded from macro 'TARGET_SIGIOT' #define TARGET_SIGIOT 6 ^ :55:1: note: expanded from here TARGET_SIGABRT ^~~~~~~~~~~~~~ ../linux-user/sh4/../generic/signal.h:25:34: note: expanded from macro 'TARGET_SIGABRT' #define TARGET_SIGABRT 6 ^ Signed-off-by: Philippe Mathieu-Daudé --- linux-user/signal-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/signal-common.h b/linux-user/signal-common.h index 3e2dc604c2..a168ea4851 100644 --- a/linux-user/signal-common.h +++ b/linux-user/signal-common.h @@ -124,7 +124,7 @@ static inline void finish_sigsuspend_mask(int ret) #define MAKE_SIG_ENTRY_SIGSTKFLT #endif -#if defined(SIGIOT) && defined(TARGET_SIGIOT) +#if defined(SIGIOT) && defined(TARGET_SIGIOT) && TARGET_SIGABRT != TARGET_SIGIOT #define MAKE_SIG_ENTRY_SIGIOT MAKE_SIG_ENTRY(SIGIOT) #else #define MAKE_SIG_ENTRY_SIGIOT