From: Thomas Huth Subject: [kvm-unit-tests PATCH] Include util.h to check the prototype with the implementation Date: Tue, 27 Jun 2017 07:18:38 +0200 Message-ID: <1498540718-3224-1-git-send-email-thuth@redhat.com> Cc: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:57664 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751536AbdF0FSk (ORCPT ); Tue, 27 Jun 2017 01:18:40 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 45952C04B328 for ; Tue, 27 Jun 2017 05:18:40 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: util.c should include util.h so that the compiler can check that the prototype from the header matches the implementation. This is required for compiling the file with "-Wmissing-prototypes". Signed-off-by: Thomas Huth --- lib/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/util.c b/lib/util.c index 69b1810..a905541 100644 --- a/lib/util.c +++ b/lib/util.c @@ -4,6 +4,7 @@ * This work is licensed under the terms of the GNU LGPL, version 2. */ #include +#include "util.h" int parse_keyval(char *s, long *val) { -- 1.8.3.1