From ab53751e89770f347a834ca2bb380c882249f8da Mon Sep 17 00:00:00 2001 From: Bastian Koppelmann Date: Tue, 30 Aug 2022 11:51:45 +0200 Subject: fix:gui:qt5_qml: Fix -Wmissing-prototype warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit get_icon() was declared in proxy.h, which we never included. This fixes: proxy.c:34:52: warning: unused variable ‘img’ [-Wunused-variable] 34 | struct graphics_image *img; --- navit/gui/qt5_qml/proxy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/navit/gui/qt5_qml/proxy.c b/navit/gui/qt5_qml/proxy.c index 399925519..3e970129d 100644 --- a/navit/gui/qt5_qml/proxy.c +++ b/navit/gui/qt5_qml/proxy.c @@ -9,6 +9,7 @@ #include "transform.h" #include "debug.h" #include "search.h" +#include "proxy.h" char * get_icon(struct navit *nav, struct item *item) { -- cgit v1.2.1