From nobody Tue Nov 4 15:31:24 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; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1530218255754210.7441365231258; Thu, 28 Jun 2018 13:37:35 -0700 (PDT) Received: from localhost ([::1]:38452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYdfb-0008Jn-0j for importer@patchew.org; Thu, 28 Jun 2018 16:37:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYdAn-0007Oy-NI for qemu-devel@nongnu.org; Thu, 28 Jun 2018 16:05:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYdAm-0000kP-Jh for qemu-devel@nongnu.org; Thu, 28 Jun 2018 16:05:45 -0400 Received: from mail-wr0-x22d.google.com ([2a00:1450:400c:c0c::22d]:38237) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYdAm-0000jp-CK for qemu-devel@nongnu.org; Thu, 28 Jun 2018 16:05:44 -0400 Received: by mail-wr0-x22d.google.com with SMTP id e18-v6so6691406wrs.5 for ; Thu, 28 Jun 2018 13:05:44 -0700 (PDT) Received: from 640k.lan ([82.84.124.111]) by smtp.gmail.com with ESMTPSA id 127-v6sm6211110wmd.18.2018.06.28.13.05.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 13:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cBf2TsfTyBYpL/Uku4NrqdbyAja64azSLBMRb0kYDSk=; b=G73B0Aw0DsMsF9r3Ejy236ptU7r6jJy3bn7B++/15UcyQhHernDiMLN+GezIHnlAIo gjF5IytrAK46V+Wu1gGqlgxSxdO2UZfx1t8sWdIoiKPDrxe2avAdgqjiDTsaInyOFI0z YItP8S8rv0ykIX6RDAq8Ql+IynNwyCwnYX6+k+dArpPKeu7DQyKY4kGfpVhMVScDOA9R rOGJdw4gZ1xB2Lqlj0jy2dOdz/Z+AVchaSmRj3SjccUeImOvJK6m0Flh3FL7mBJO2p2e Et5G7/zXQu2//YcSAdcfnc5vg3xAjmgtEbVVHYUwKDDvIznNLl54VgEFwodi9zYhABEu QQYQ== 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:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=cBf2TsfTyBYpL/Uku4NrqdbyAja64azSLBMRb0kYDSk=; b=gf4M9UrX1ZvHhc7QflG4lbAdUs3Qdqu0M+hKiZCV8uLWvdztECI7wa5n9VrS53IApY W8GV5o8EGyZ8Za1LbfxHM+EWAX3VZQVMjnCoPn9DLA3hX6WRgNHR/B9cvG6LVTzRc1iv AGBYLrqZ/z7oQ1MUWraTmvd2XNkXi8Y4IAiX1sJbWszdkbchz9j3ko4XBR1Z2Azp9HBP CDUkxlR/+7ztoL5+6cVC1RIk9aKqWY9hiasRWCK6T6gxOl2qgFQvJL6i7ctAn7/OPn2g WtwuTEZeGPNLmIoDC+TR5lcoBfUbpSpRDK7uobYfgYBjvB7jdWnEslnO6liYWovzkRas WVWA== X-Gm-Message-State: APt69E3nukjWRRL+b/TQ197A/7TgYyuamPHtxHcmQec7LAM6k8p3nvLP neqROoPu6Jch0TGJb2v+jFwW/PM4 X-Google-Smtp-Source: AAOMgpeeXctkmj7V81RYhyYN4INkTA38I+uJJT78EXR5F6Z7jBX3lFrSwtYd75wMFPHBzYHxYUrLlw== X-Received: by 2002:adf:82cf:: with SMTP id 73-v6mr9584382wrc.77.1530216343075; Thu, 28 Jun 2018 13:05:43 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 28 Jun 2018 22:04:40 +0200 Message-Id: <1530216310-52873-31-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1530216310-52873-1-git-send-email-pbonzini@redhat.com> References: <1530216310-52873-1-git-send-email-pbonzini@redhat.com> 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: 2a00:1450:400c:c0c::22d Subject: [Qemu-devel] [PULL 30/60] osdep: work around Coverity parsing errors 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: , 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 Coverity does not like the new _Float* types that are used by recent glibc, and croaks on every single file that includes stdlib.h. Add dummy typedefs to please it. Reviewed-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Paolo Bonzini --- include/qemu/osdep.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 9ed6242..a91068d 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -33,6 +33,21 @@ #else #include "exec/poison.h" #endif +#ifdef __COVERITY__ +/* Coverity does not like the new _Float* types that are used by + * recent glibc, and croaks on every single file that includes + * stdlib.h. These typedefs are enough to please it. + * + * Note that these fix parse errors so they cannot be placed in + * scripts/coverity-model.c. + */ +typedef float _Float32; +typedef double _Float32x; +typedef double _Float64; +typedef __float80 _Float64x; +typedef __float128 _Float128; +#endif + #include "qemu/compiler.h" =20 /* Older versions of C++ don't get definitions of various macros from --=20 1.8.3.1