From patchwork Wed Jan 23 22:46:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 156430 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1257935jaa; Wed, 23 Jan 2019 14:48:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN58kMyhTZIKMZ0cxtYfTdvu4juSm5CkJB8w0LaAEAxAn/Fe99jzik9gLeD2LNzrYa/tsR7A X-Received: by 2002:a37:7a87:: with SMTP id v129mr3682131qkc.324.1548283695077; Wed, 23 Jan 2019 14:48:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548283695; cv=none; d=google.com; s=arc-20160816; b=uyWDVuOYifM7JbACRJqW853OAcH4nxLTYeeEyWOHno0ayP7kNJfSAHSHFzThFw/D3l TN0O5ebTQ3NffQDqvDKVWDBqqgdW384cyeMmGdmQ4wUQWY2Yhhw5jRvAPRfJV6pOVnOx HBAHMBPmu7PnreaouWCN7Maqlnu2BTxEZye/6biXdp3P3kAhPpxDAlBgOQe18x2+RRZ+ O0TEIej4j8ZH5KJUvsFpsekgqbWOKb6bhqNtQd9yeIcJF6PDr4+4QZZi1uAXIRIkxxwe 3oAfZQxIICOd67vdKmJa9m9qgH7/EylHy8zIeMxkgbQMiRAdTB7sw2lCT5QGX3BgGGrb HjgA== 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=ZR/22PO2HYoyhJgON5s8aRcYwqCcl3TWRsZ1RIjsNMU=; b=uNYgm+UpyvCs6izUnDLuzCRZgZ1SZLJpl1YUs9mOt9aJ9JMf1RYhEhIaCte5P43M6/ cl8P8cSo2AMnHaXBarWGh6dsbaD6pCYjwaJVEQct1wXsozWDu0F1rSz+RmHppQICNEjO t/K8j+ZniKHFzH/bnhnzAHYQZPRQ5RAgAPCXw+7Bir2nvXRQbK2srtuJdgWJvLIV94rm e//GW0oBjctYHs2ABzWjjfb7DRE8UvWLlFjClMA4ARg8UBBKwkgC8DciGIZXEb8mWUtO RnRUSGfDJ3efjS/eTzE5PWUXnbKloTAZjyKaarppFb2WgRk6B55cTj/fFs7ZgjPrYXpr 9uPQ== 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 a10si1556058qti.205.2019.01.23.14.48.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jan 2019 14:48:15 -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-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B88D114521E; Wed, 23 Jan 2019 22:48:13 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 829E5601A4; Wed, 23 Jan 2019 22:48:13 +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 37CD418033A1; Wed, 23 Jan 2019 22:48:13 +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 x0NMluAJ011160 for ; Wed, 23 Jan 2019 17:47:56 -0500 Received: by smtp.corp.redhat.com (Postfix) id E492867141; Wed, 23 Jan 2019 22:47:56 +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 F24D6BA8B; Wed, 23 Jan 2019 22:47:55 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Wed, 23 Jan 2019 17:46:15 -0500 Message-Id: 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 8/9] Require a semicolon for VIR_ONCE_GLOBAL_INIT 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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 23 Jan 2019 22:48:14 +0000 (UTC) Add a dummy struct definition at the end of the macro, so the compiler will require callers to add a semicolon. Signed-off-by: Cole Robinson --- src/util/virthread.h | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list diff --git a/src/util/virthread.h b/src/util/virthread.h index d15dfc6a2d..218d1fcd3f 100644 --- a/src/util/virthread.h +++ b/src/util/virthread.h @@ -212,5 +212,6 @@ int virThreadLocalSet(virThreadLocalPtr l, void*) ATTRIBUTE_RETURN_CHECK; \ return 0; \ } \ + struct classname ## EatSemicolon #endif /* LIBVIRT_VIRTHREAD_H */