Message ID | 1574284430-8776-3-git-send-email-dmalcolm@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-return-514234-incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-514234-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="utmcQUdh"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="f5c+Ja2a"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47JFdT6TS9z9sPT for <incoming@patchwork.ozlabs.org>; Thu, 21 Nov 2019 08:07:40 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :content-type:content-transfer-encoding; q=dns; s=default; b=is2 Q8jCutB/vatGFpy7IPrmE0UL9PSDFam0NvoGBOhupqpRGjkgA/D7FHHk+9oVUSOU CPU55FRuNGX4uIX+/xr7hC8HX8Ik5NsxXt+pdQmPTnw0aLxO8sJb13iSsZBA0D5x Sj9RT58SrXkM53VvoU6FP5eMFBvDPcoKAZIf+Ta8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :content-type:content-transfer-encoding; s=default; bh=kRbQvLKRw 58+N1w3dV7qEVZ3Cio=; b=utmcQUdhRLzQ8+kk911lfC8FdiHkoAbV9u0sW3WBm 3wn9t9yp0qKWExRkheM+gaY+DYMXF8c66CNByrmH7QsoXjdW4gUfG7SlSNe0E1yd 4TjpFDanhJw1YPo2QhAI2wSOuo4NtNoAA1TsarynxX0/Da645AissO+l3bQedu3N c8= Received: (qmail 85662 invoked by alias); 20 Nov 2019 21:07:13 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-patches.gcc.gnu.org> List-Unsubscribe: <mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-help@gcc.gnu.org> Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 85621 invoked by uid 89); 20 Nov 2019 21:07:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-2.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (205.139.110.61) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 20 Nov 2019 21:07:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574284030; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RTU4TLGTNtE0z8cRuS5RpmwWlB8bx3XRuBvfq5sWCXU=; b=f5c+Ja2aiF22DQgWQ+VdLDfj9G1IqsCdQv5fV3Nf4oLxkyjt5VkcRdPL8Eo8lzHWsFlcVd M3kQpMD488Ae5p+y3rNYKx2YyCOlC76bB3ynTdJiaZAvj9nmyIOJ+vUJO22YPyR7Nergv4 FERx0TkUICY1mJ0USTCR4doDWWwxVz8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-184-YDupjwH4OPGnKqJD4LSM4w-1; Wed, 20 Nov 2019 16:07:08 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9E4A4801E74 for <gcc-patches@gcc.gnu.org>; Wed, 20 Nov 2019 21:07:07 +0000 (UTC) Received: from c64.redhat.com (ovpn-112-19.phx2.redhat.com [10.3.112.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id 81C20106427B; Wed, 20 Nov 2019 21:07:05 +0000 (UTC) From: David Malcolm <dmalcolm@redhat.com> To: gcc-patches@gcc.gnu.org Cc: David Malcolm <dmalcolm@redhat.com> Subject: [PATCH 02/11] [analyzer] Fixup metadata-handling for "json::number" to "json::integer_number" Date: Wed, 20 Nov 2019 16:13:41 -0500 Message-Id: <1574284430-8776-3-git-send-email-dmalcolm@redhat.com> In-Reply-To: <1574284430-8776-1-git-send-email-dmalcolm@redhat.com> References: <1574284430-8776-1-git-send-email-dmalcolm@redhat.com> X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes |
Series |
Static analysis v2
|
expand
|
diff --git a/gcc/diagnostic-format-json.cc b/gcc/diagnostic-format-json.cc index 24a08c0..f73d09b 100644 --- a/gcc/diagnostic-format-json.cc +++ b/gcc/diagnostic-format-json.cc @@ -112,7 +112,8 @@ json_from_metadata (const diagnostic_metadata *metadata) json::object *metadata_obj = new json::object (); if (metadata->get_cwe ()) - metadata_obj->set ("cwe", new json::number (metadata->get_cwe ())); + metadata_obj->set ("cwe", + new json::integer_number (metadata->get_cwe ())); return metadata_obj; }