From patchwork Wed Jan 23 22:46:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 156424 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1257756jaa; Wed, 23 Jan 2019 14:48:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN7JcZiy3VStlIJa18W7hbLKpqaUv6R94V6zbQAxB1f3XgpDCkY7COOvRHmlfrfdsZGCrIvD X-Received: by 2002:a37:4792:: with SMTP id u140mr3618171qka.301.1548283683212; Wed, 23 Jan 2019 14:48:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548283683; cv=none; d=google.com; s=arc-20160816; b=RoKCUZoViF8zd4AVM+dlmAPZfT2bLpM+1qp7um6bQXNhX54rOkrdTyC+Iv1rfwklhh cw0bowtS/eWaPl97mx/BYHHmwy5ryNvRQNPmYMEjBN8U4RSi6DoClkiRutlwvCWMnZ8E I+S9C4Is+zXdwa8zBh395ATU9Sgds4EP7Q48mG/YmHDKEX7kU7uPzkmL6WbEn1lh5CD7 Uk5mSlAt5xCuGGGhwTwonX1MDi/8LAdbceTYa957agNFCIOXuohejRJ8OuV/9SgZH2rp UXWcTS4Ruv7jEkz/+E0VMlDLfcflvFUXWFjJcxOiakp98zoWfaEQyOY39W4zYEdVcbnT yLcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :delivered-to; bh=m5GB6B24ve768PcRQ1iDadzzA9xiz1RzGQXxDI6c2kg=; b=rp6E4C6HCsKqoPR6ASTwjis5P+Jx1r28l56GWDXkfQW3+ewmIkMJvT4tqczLF2fCwB puCLhxTadACvv1Zp/sUsRc/tQ74r7mZHT2Be9izuuY3+YiFtemUJ45wLPgtut0NKt4tW uBpI1wpIJmhiZt5O0FOiYO5DCaDPZa8FzJowQlfDqmG+CY0nRlAjzdUO1GCw/+HxIG5U Dgt4F7rUKbNnVrmnI/qUbAo7kKNjetbK4LhnPytu9pLgOQF87mWShs17hYdtf1wJVji4 xolRHVr7opIo8blNiswxJ600oxRG7gpUlnmxbrth3LqDUbx3mTSnF0LRdSfEhZ9HxO7+ Gd+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id j90si1181329qtd.27.2019.01.23.14.48.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jan 2019 14:48:03 -0800 (PST) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id ABAD8AC614; Wed, 23 Jan 2019 22:48:01 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 75EBE9F72; Wed, 23 Jan 2019 22:48:01 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 1DBBC3F603; Wed, 23 Jan 2019 22:48:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x0NMlqfl011136 for ; Wed, 23 Jan 2019 17:47:52 -0500 Received: by smtp.corp.redhat.com (Postfix) id E5BDB65F72; Wed, 23 Jan 2019 22:47:52 +0000 (UTC) Delivered-To: libvirt-list@redhat.com Received: from worklaptop.redhat.com (ovpn-120-34.rdu2.redhat.com [10.10.120.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id 183F0BA78; Wed, 23 Jan 2019 22:47:51 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Wed, 23 Jan 2019 17:46:12 -0500 Message-Id: <76c42e73bd938f8d15d8b3793bf3f750b99ea489.1548283535.git.crobinso@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: Andrea Bolognani Subject: [libvirt] [PATCH 5/9] Require a semicolon for VIR_ENUM_DECL calls X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 23 Jan 2019 22:48:02 +0000 (UTC) Drop the semicolon from the final statement of the macro, so the compiler will require callers to add a semicolon. Signed-off-by: Cole Robinson --- src/util/virutil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list diff --git a/src/util/virutil.h b/src/util/virutil.h index d1c7d6e138..d5adab61e2 100644 --- a/src/util/virutil.h +++ b/src/util/virutil.h @@ -96,7 +96,7 @@ const char *virEnumToString(const char *const*types, # define VIR_ENUM_DECL(name) \ const char *name ## TypeToString(int type); \ - int name ## TypeFromString(const char*type); + int name ## TypeFromString(const char*type) /* No-op workarounds for functionality missing in mingw. */ # ifndef HAVE_GETUID