summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Radici <antonio@dyne.org>2009-10-03 21:47:45 (GMT)
committer Antonio Radici <antonio@dyne.org>2009-10-03 21:47:45 (GMT)
commit1fef7a710d18fe0fcc7ad75eafd9cfb1db5d23b7 (patch)
tree29229b728c2e2265aaa3998fca42eff5dfab67f8
parent6647f81ab82c3fd65b3971c8cadbfef3106f9a89 (diff)
remove warnings for unitialized values
-rw-r--r--src/gtkgui2/gchan.cpp2
-rw-r--r--src/gtkgui2/gchan_events.cpp5
-rw-r--r--src/gtkgui2/gradiosched.cpp4
-rw-r--r--src/gtkgui2/gtk2_gui.cpp2
-rw-r--r--src/gtkgui2/utils.cpp3
5 files changed, 4 insertions, 12 deletions
diff --git a/src/gtkgui2/gchan.cpp b/src/gtkgui2/gchan.cpp
index 893f0ae..9f1f006 100644
--- a/src/gtkgui2/gchan.cpp
+++ b/src/gtkgui2/gchan.cpp
@@ -488,8 +488,6 @@ void gcb_play_channel(GtkWidget *w, struct gchan *o)
{
guint res;
- GtkTreePath *path;
- GtkTreeIter iter;
GtkTreeSelection *select;
GtkTreeModel *model;
gint index=0;
diff --git a/src/gtkgui2/gchan_events.cpp b/src/gtkgui2/gchan_events.cpp
index 8d5d51e..34a864f 100644
--- a/src/gtkgui2/gchan_events.cpp
+++ b/src/gtkgui2/gchan_events.cpp
@@ -98,7 +98,7 @@ void DND_data_received(GtkWidget *w, GdkDragContext *dc, gint x, gint y,
{
GtkTreeIter iter, itersrc;
GtkTreeModel *model, *modelsrc;
- GtkTreePath *path, *pathsrc;
+ GtkTreePath *path;
GtkTreeSelection *selectsrc;
GtkWidget *source;
gint row=0, rowsrc=0;
@@ -208,9 +208,6 @@ gboolean gcb_event_view_popup(GtkWidget *w, GdkEventButton *s, struct gchan *o)
{
GtkWidget *tmpwid;
GtkWidget *menupop = gtk_menu_new();
- GtkTreeSelection *select;
- GtkTreePath *path;
- gint *row = NULL;
if(s->button == 3) {
/*select = gtk_tree_view_get_selection(GTK_TREE_VIEW(w));
diff --git a/src/gtkgui2/gradiosched.cpp b/src/gtkgui2/gradiosched.cpp
index af8d8e3..019486f 100644
--- a/src/gtkgui2/gradiosched.cpp
+++ b/src/gtkgui2/gradiosched.cpp
@@ -55,13 +55,11 @@ enum {
void rsched_new(GtkWidget *w)
{
GtkWidget *winsched, *scroll, *tree;
- GtkWidget *tmpvbox, *tmphbox, *button, *starts, *stops;
+ GtkWidget *tmpvbox, *button, *starts, *stops;
GtkWidget *tmpwid, *tmpwid1, *tmptable, *startl, *stopl, *startl1, *stopl1;
- GtkWidget *align;
GtkListStore *store;
GtkTreeViewColumn *column;
GtkCellRenderer *renderer;
- GtkTreeIter iter;
GtkTreeSelection *select;
create_xml_schedule_file();
diff --git a/src/gtkgui2/gtk2_gui.cpp b/src/gtkgui2/gtk2_gui.cpp
index 06d6707..5562435 100644
--- a/src/gtkgui2/gtk2_gui.cpp
+++ b/src/gtkgui2/gtk2_gui.cpp
@@ -43,7 +43,7 @@ GTK2_GUI::~GTK2_GUI() {
void GTK2_GUI::run() {
while(!quit) {
- if(quit = !gtkgui_get_state()) {
+ if( (quit = !gtkgui_get_state()) ) {
_mix->quit = true;
} else {
int i;
diff --git a/src/gtkgui2/utils.cpp b/src/gtkgui2/utils.cpp
index 6fc36f1..cc80ec2 100644
--- a/src/gtkgui2/utils.cpp
+++ b/src/gtkgui2/utils.cpp
@@ -42,8 +42,7 @@
GtkWidget *createbbox(GtkWidget *bbox)
{
- GtkWidget *ice, *clame, *addch, *help, *vumeters, *scheduler;
- GtkWidget *tmpwid;
+ GtkWidget *ice, *clame, *addch, *help, *vumeters;
ice = clame = addch = help = vumeters = NULL;