[Gpredict-svn] SF.net SVN: gpredict:[871] trunk/src/gtk-sat-module.c
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <aa...@us...> - 2011-07-15 22:38:30
|
Revision: 871
http://gpredict.svn.sourceforge.net/gpredict/?rev=871&view=rev
Author: aa1vs
Date: 2011-07-15 22:38:24 +0000 (Fri, 15 Jul 2011)
Log Message:
-----------
Clean pendantic compiler warning.
Modified Paths:
--------------
trunk/src/gtk-sat-module.c
Modified: trunk/src/gtk-sat-module.c
===================================================================
--- trunk/src/gtk-sat-module.c 2011-07-15 22:37:10 UTC (rev 870)
+++ trunk/src/gtk-sat-module.c 2011-07-15 22:38:24 UTC (rev 871)
@@ -121,6 +121,7 @@
sizeof (GtkSatModule),
5, /* n_preallocs */
(GInstanceInitFunc) gtk_sat_module_init,
+ NULL
};
gtk_sat_module_type = g_type_register_static (GTK_TYPE_VBOX,
@@ -618,7 +619,7 @@
/* number of views: we have five numbers per view (type,left,right,top,bottom) */
module->nviews = length / 5;
- module->grid = g_try_new0 (gint, length);
+ module->grid = g_try_new0 (guint, length);
/* if we cannot allocate memory for the grid zero the views out and log */
if ( module->grid != NULL ) {
@@ -959,6 +960,8 @@
geodetic_t obs_geodetic = {0,0,0,0};
gdouble maxdt;
+ (void) key; /* prevent unused parameter compiler warning */
+
g_return_if_fail ((val != NULL) && (data != NULL));
sat = SAT(val);
@@ -1100,6 +1103,7 @@
static void
gtk_sat_module_popup_cb (GtkWidget *button, gpointer data)
{
+ (void) button; /* prevent unused parameter compiler warning */
gtk_sat_module_popup (GTK_SAT_MODULE (data));
}
@@ -1125,6 +1129,8 @@
gchar *name;
gint retcode;
+ (void) button; /* prevent unused parameter compiler warning */
+
name = g_strdup (module->name);
sat_log_log (SAT_LOG_LEVEL_DEBUG,
@@ -1252,7 +1258,8 @@
gtk_sat_mod_state_t laststate;
gint w,h;
-
+ (void) button; /* prevent unused parameter compiler warning */
+
if (module->win != NULL)
toplevel = module->win;
else
@@ -1426,6 +1433,9 @@
static gboolean empty (gpointer key, gpointer val, gpointer data)
{
+ (void) key; /* prevent unused parameter compiler warning */
+ (void) val; /* prevent unused parameter compiler warning */
+ (void) data; /* prevent unused parameter compiler warning */
/* TRUE => sat removed from hash table */
return TRUE;
}
@@ -1517,7 +1527,7 @@
void gtk_sat_module_select_sat (GtkSatModule *module, gint catnum)
{
GtkWidget *child;
- gint i;
+ guint i;
/* select satellite in each child */
@@ -1557,6 +1567,8 @@
*/
void gtk_sat_module_reconf (GtkSatModule *module, gboolean local)
{
+ (void) module; /* prevent unused parameter compiler warning */
+ (void) local; /* prevent unused parameter compiler warning */
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|