From 4296e74ada03f59724d80a77e8e8fe7e5ecce9a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 23 Sep 2020 13:43:03 +0200 Subject: [PATCH] Include prototype in Battery implementation linux/Battery.c:291:6: warning: no previous prototype for function 'Battery_getData' [-Wmissing-prototypes] void Battery_getData(double* level, ACPresence* isOnAC) { ^ --- linux/Battery.c | 3 ++- linux/Battery.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/linux/Battery.c b/linux/Battery.c index e45afa4e..6ea48c45 100644 --- a/linux/Battery.c +++ b/linux/Battery.c @@ -7,6 +7,8 @@ in the source distribution for its full text. Linux battery readings written by Ian P. Hands (iphands@gmail.com, ihands@redhat.com). */ +#include "Battery.h" + #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif @@ -18,7 +20,6 @@ Linux battery readings written by Ian P. Hands (iphands@gmail.com, ihands@redhat #include #include #include -#include "BatteryMeter.h" #include "StringUtils.h" #define SYS_POWERSUPPLY_DIR "/sys/class/power_supply" diff --git a/linux/Battery.h b/linux/Battery.h index 8ca0d7fb..3b3d2382 100644 --- a/linux/Battery.h +++ b/linux/Battery.h @@ -9,6 +9,8 @@ in the source distribution for its full text. Linux battery readings written by Ian P. Hands (iphands@gmail.com, ihands@redhat.com). */ +#include "BatteryMeter.h" + void Battery_getData(double* level, ACPresence* isOnAC); #endif