summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7491350)
raw | patch | inline | side by side (parent: 7491350)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Tue, 9 Aug 2016 11:51:46 +0000 (13:51 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Tue, 9 Aug 2016 11:52:25 +0000 (13:52 +0200) |
gps.c:242:12: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
static int cgps_read ()
^~~~~~~~~
gps.c: In function ‘cgps_read’:
gps.c:242:12: warning: old-style function definition
[-Wold-style-definition]
[-Wstrict-prototypes]
static int cgps_read ()
^~~~~~~~~
gps.c: In function ‘cgps_read’:
gps.c:242:12: warning: old-style function definition
[-Wold-style-definition]
src/gps.c | patch | blob | history |
diff --git a/src/gps.c b/src/gps.c
index 04de5aa9ccf3a7994c182dae7a710f23dbcb881e..19f317cb03690a8ef3f8104d5609f67e7b1455eb 100644 (file)
--- a/src/gps.c
+++ b/src/gps.c
@@ -239,7 +239,7 @@ static void cgps_submit (const char *type, gauge_t value, const char *type_insta
/**
* Read the data and submit by piece.
*/
-static int cgps_read ()
+static int cgps_read (void)
{
cgps_data_t data_copy;