From nobody Tue Oct 28 01:58:03 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1516195202058642.6169023130875; Wed, 17 Jan 2018 05:20:02 -0800 (PST) Received: from localhost ([::1]:35407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebndF-0004v3-9T for importer@patchew.org; Wed, 17 Jan 2018 08:19:57 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebnbt-0004GR-A8 for qemu-devel@nongnu.org; Wed, 17 Jan 2018 08:18:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebnbs-0007kd-Cw for qemu-devel@nongnu.org; Wed, 17 Jan 2018 08:18:33 -0500 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:34740) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebnbs-0007kP-9D for qemu-devel@nongnu.org; Wed, 17 Jan 2018 08:18:32 -0500 Received: by mail-qk0-x242.google.com with SMTP id b76so25193527qkc.1 for ; Wed, 17 Jan 2018 05:18:32 -0800 (PST) Received: from x1.local ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id n21sm2990418qtl.38.2018.01.17.05.18.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jan 2018 05:18:31 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=ywFbl/3gkaX2Nec/gYJmtjnYMtcg4/a1r8QkPlBRw74=; b=k+NPdYErv8rmNmJ1Yc3FBk6MXyerKpK8l9OPI9CbSVbP+tSqfeLEN+MFbLn2eFa+op I15xVHG7St3riwQ7iwIl2KmP2a92M0yuwtRmUqUH5GJujFHGQcM0/B3yhegJL6dZRzBI iK77NH6ON3LoIYFiiaL5PkIEPhaZcgepmJJCfXH92xGICE8f3Awzs+K1xTWRZVy5LN+g QxY8Zr8g3jfjUB+TSdi72v+gr53tmZ0qEQSAHEPtO/UGTyOZTueJqYFD3WkO4061j6PW 1Aa53nKQfuSA2zitTec5j/wTY7/RFGG48V/aHKqRJSM3JQo8gkn2N/g4kly7/21ZeKFZ Ygcg== 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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=ywFbl/3gkaX2Nec/gYJmtjnYMtcg4/a1r8QkPlBRw74=; b=IgjPfuH6UwtoxSJOKRE1+yNkeCZuq3Jvh+o2RQxR6Guem4/9kKTW2Ia8JIanFiX9bf YtPVhU7UMgbu6lgKTAw5CrlJ4slbb5KKCMyxfFVr1W0xsTW4Xjh+CryBlt6TWnxJd++L WZx0XfhQS4cShF7dnZHKzE6ZHLECpAH/fE1Tl9bs0tTxxVZ3bPYnrFiUePiZ7wDcFGY2 NrVhZ6hXdp66zJartywNQBmlyd4BSsYJh2uNqwEfbVzKWDilA98Vw9ffFEpdg4hxxJo0 Z5sB94sWa5PxJtvGS9k/0aBcDaECukOerHliLV8tZQqxneEX87WahzkHgXWRITglvWiA DLIw== X-Gm-Message-State: AKGB3mLBOjn5g2bB235nITARHMaV3PHS94y0X9GUjqw7xzjuDe1bZxKe QfZQQaMxAcdc0kpvnKG0A5c= X-Google-Smtp-Source: ACJfBotprhTSVTuWCMWuis5LNgp9aibLujeX7PNmbS/qgCRaF8BmUh37tQ1xfRPC9lhPDq5rBneMNw== X-Received: by 10.55.195.69 with SMTP id a66mr57494000qkj.83.1516195111819; Wed, 17 Jan 2018 05:18:31 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 17 Jan 2018 10:18:19 -0300 Message-Id: <20180117131821.18700-2-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180117131821.18700-1-f4bug@amsat.org> References: <20180117131821.18700-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::242 Subject: [Qemu-devel] [RFC PATCH 1/3] compiler: add QEMU_WARN_NONNULL_ARGS() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , qemu-devel@nongnu.org, Stefan Weil , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Luiz Capitulino , Stefan Hajnoczi , Paolo Bonzini Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/qemu/compiler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h index 340e5fdc09..d9b2489391 100644 --- a/include/qemu/compiler.h +++ b/include/qemu/compiler.h @@ -26,6 +26,8 @@ =20 #define QEMU_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) =20 +#define QEMU_WARN_NONNULL_ARGS(args...) __attribute__((nonnull(args))) + #define QEMU_SENTINEL __attribute__((sentinel)) =20 #if QEMU_GNUC_PREREQ(4, 3) --=20 2.15.1