summaryrefslogtreecommitdiff
path: root/gpsclient.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-08-16 13:51:26 -0700
committerGary E. Miller <gem@rellim.com>2016-08-16 13:51:26 -0700
commit1d29f15f15aca66dc67307f61211d50a65a05763 (patch)
tree90d653fed255dc51b3c62208476c53352936a650 /gpsclient.c
parent0868e9c92ca3a26e2b64cb13ee3bcdb8e39da979 (diff)
downloadgpsd-1d29f15f15aca66dc67307f61211d50a65a05763.tar.gz
OS X incorrectly complains about an uninitializzed variable.
So just placate it with an initializer.
Diffstat (limited to 'gpsclient.c')
-rw-r--r--gpsclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsclient.c b/gpsclient.c
index 7b04ddc0..0ee120de 100644
--- a/gpsclient.c
+++ b/gpsclient.c
@@ -42,7 +42,7 @@ gpsclient_gpsd_units(PyObject *self UNUSED, PyObject *args)
static PyObject *
gpsclient_wgs84_separation(PyObject *self UNUSED, PyObject *args)
{
- const double lat, lon;
+ const double lat = 0.0, lon = 0.0;
double sep;
if (!PyArg_ParseTuple(args, "dd", &lat, &lon))
@@ -54,7 +54,7 @@ gpsclient_wgs84_separation(PyObject *self UNUSED, PyObject *args)
static PyObject *
gpsclient_maidenhead(PyObject *self UNUSED, PyObject *args)
{
- const double lat, lon;
+ const double lat = 0.0, lon = 0.0;
char *gs;
if (!PyArg_ParseTuple(args, "dd", &lat, &lon))