[libgis] Fix compiler warnings
- From: Andy Spencer <andys src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgis] Fix compiler warnings
- Date: Fri, 10 Sep 2010 03:17:49 +0000 (UTC)
commit 4d9d0eb76317c97b94f44a745ffecde29de0454d
Author: Andy Spencer <andy753421 gmail com>
Date: Mon May 10 05:34:23 2010 +0000
Fix compiler warnings
gen.sh | 2 +-
src/gis-opengl.c | 1 -
src/gis-viewer.c | 3 +--
src/plugins/elev.c | 1 -
src/plugins/map.c | 1 -
src/plugins/sat.c | 1 -
src/roam.c | 7 -------
7 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/gen.sh b/gen.sh
index 2cbbd0d..adbf6e2 100755
--- a/gen.sh
+++ b/gen.sh
@@ -4,5 +4,5 @@ dir=$(dirname $(readlink -f $0))
"--enable-gtk-doc" \
"--libdir=$dir/src/.libs" \
"--includedir=$dir/include" \
- CFLAGS="-g -Werror -Wno-unused $CFLAGS" \
+ CFLAGS="-g -Werror $CFLAGS" \
LDFLAGS="-Wl,-z,defs"
diff --git a/src/gis-opengl.c b/src/gis-opengl.c
index 11c489b..ecbf47a 100644
--- a/src/gis-opengl.c
+++ b/src/gis-opengl.c
@@ -548,7 +548,6 @@ GisViewer *gis_opengl_new(GisPlugins *plugins, GisPrefs *prefs)
static void gis_opengl_center_position(GisViewer *_opengl, gdouble lat, gdouble lon, gdouble elev)
{
- GisOpenGL *opengl = GIS_OPENGL(_opengl);
glRotatef(lon, 0, 1, 0);
glRotatef(-lat, 1, 0, 0);
glTranslatef(0, 0, elev2rad(elev));
diff --git a/src/gis-viewer.c b/src/gis-viewer.c
index b89c37f..8679ff9 100644
--- a/src/gis-viewer.c
+++ b/src/gis-viewer.c
@@ -142,7 +142,7 @@ static gboolean on_button_press(GisViewer *viewer, GdkEventButton *event, gpoint
case 1: viewer->drag_mode = GIS_DRAG_PAN; break;
case 2: viewer->drag_mode = GIS_DRAG_ZOOM; break;
case 3: viewer->drag_mode = GIS_DRAG_TILT; break;
- defualt: viewer->drag_mode = GIS_DRAG_NONE; break;
+ default: viewer->drag_mode = GIS_DRAG_NONE; break;
}
viewer->drag_x = event->x;
viewer->drag_y = event->y;
@@ -585,7 +585,6 @@ static void gis_viewer_init(GisViewer *viewer)
static void gis_viewer_finalize(GObject *gobject)
{
g_debug("GisViewer: finalize");
- GisViewer *viewer = GIS_VIEWER(gobject);
G_OBJECT_CLASS(gis_viewer_parent_class)->finalize(gobject);
}
static void gis_viewer_class_init(GisViewerClass *klass)
diff --git a/src/plugins/elev.c b/src/plugins/elev.c
index a8f9df1..a6589ff 100644
--- a/src/plugins/elev.c
+++ b/src/plugins/elev.c
@@ -237,7 +237,6 @@ static gboolean _free_tile_cb(gpointer _data)
}
static void _free_tile(GisTile *tile, gpointer _elev)
{
- GisPluginElev *elev = _elev;
g_debug("GisPluginElev: _free_tile: %p", tile->data);
if (tile->data)
g_idle_add_full(G_PRIORITY_LOW, _free_tile_cb, tile->data, NULL);
diff --git a/src/plugins/map.c b/src/plugins/map.c
index 5799ca0..d93e336 100644
--- a/src/plugins/map.c
+++ b/src/plugins/map.c
@@ -128,7 +128,6 @@ static gboolean _free_tile_cb(gpointer data)
}
static void _free_tile(GisTile *tile, gpointer _map)
{
- GisPluginMap *map = _map;
g_debug("GisPluginMap: _free_tile: %p", tile->data);
if (tile->data)
g_idle_add_full(G_PRIORITY_LOW, _free_tile_cb, tile->data, NULL);
diff --git a/src/plugins/sat.c b/src/plugins/sat.c
index 2d28da5..1e61f1d 100644
--- a/src/plugins/sat.c
+++ b/src/plugins/sat.c
@@ -118,7 +118,6 @@ static gboolean _free_tile_cb(gpointer data)
}
static void _free_tile(GisTile *tile, gpointer _sat)
{
- GisPluginSat *sat = _sat;
g_debug("GisPluginSat: _free_tile: %p", tile->data);
if (tile->data)
g_idle_add_full(G_PRIORITY_LOW, _free_tile_cb, tile->data, NULL);
diff --git a/src/roam.c b/src/roam.c
index 3de5b5b..6694026 100644
--- a/src/roam.c
+++ b/src/roam.c
@@ -84,13 +84,6 @@ RoamPoint *roam_point_new(gdouble lat, gdouble lon, gdouble elev)
return point;
}
-static RoamPoint *roam_point_dup(RoamPoint *point)
-{
- RoamPoint *new = g_memdup(point, sizeof(RoamPoint));
- new->tris = 0;
- return new;
-}
-
/**
* roam_point_add_triangle:
* @point: the point
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]