[gnome-internet-radio-locator: 1/2] Fix prototype of gtk_internet_radio_locator_radius
- From: Ole Aamot <ole src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-internet-radio-locator: 1/2] Fix prototype of gtk_internet_radio_locator_radius
- Date: Sun, 2 May 2021 20:41:30 +0000 (UTC)
commit 2c535e0d625e663c4dce091be8f49393e3a0397a
Author: Dominique Leuenberger <dimstar opensuse org>
Date: Fri Apr 30 21:23:27 2021 +0200
Fix prototype of gtk_internet_radio_locator_radius
The function does not return any value in its currrent form.
Thus declaring it void fixes build failures seen in the wild such as:
[ 17s] gnome-internet-radio-locator-radius.c:76:1: error: control reaches end of non-void function
[-Werror=return-type]
[ 17s] 76 | }
src/gnome-internet-radio-locator-radius.c | 2 +-
src/gnome-internet-radio-locator-radius.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-internet-radio-locator-radius.c b/src/gnome-internet-radio-locator-radius.c
index 32ab59f..b64178f 100644
--- a/src/gnome-internet-radio-locator-radius.c
+++ b/src/gnome-internet-radio-locator-radius.c
@@ -44,7 +44,7 @@ typedef struct _Position {
float lon;
} Position;
-int
+void
gnome_internet_radio_locator_radius (float latitude, float longitude, int radius)
{
int values[] = {0,1,2};
diff --git a/src/gnome-internet-radio-locator-radius.h b/src/gnome-internet-radio-locator-radius.h
index 04025d9..aaf90ba 100644
--- a/src/gnome-internet-radio-locator-radius.h
+++ b/src/gnome-internet-radio-locator-radius.h
@@ -24,6 +24,6 @@
#ifndef GNOME_INTERNET_RADIO_LOCATOR_RADIUS_H
#define GNOME_INTERNET_RADIO_LOCATOR_RADIUS_H
-int gnome_internet_radio_locator_radius (float latitude, float longitude, int radius);
+void gnome_internet_radio_locator_radius (float latitude, float longitude, int radius);
#endif /* GNOME_INTERNET_RADIO_LOCATOR_RADIUS_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]