]> git.tdb.fi Git - r2c2.git/commitdiff
Silence compiler warnings
authorMikko Rasa <tdb@tdb.fi>
Fri, 20 May 2011 17:17:07 +0000 (17:17 +0000)
committerMikko Rasa <tdb@tdb.fi>
Fri, 20 May 2011 17:17:07 +0000 (17:17 +0000)
source/libr2c2/intellibox.cpp
source/remote/trainpanel.cpp

index 4e6bb763d7e278a745a16fc200cfb8cdf406da63..ebaac8dc7d30e7f41f39297a9e062d20aabc7160 100644 (file)
@@ -355,7 +355,6 @@ void Intellibox::tick()
 
 void Intellibox::flush()
 {
-       Time::TimeStamp t = Time::now();
        for(list<CommandSlot>::iterator i=queue.begin(); i!=queue.end(); ++i)
        {
                write(serial_fd, i->data, i->length);
index 7675b27f07e086c5ed6a258f2754598b9e4a2283..e0f2658109b81334092e5567022766312e240d8b 100644 (file)
@@ -54,7 +54,7 @@ TrainPanel::TrainPanel(Remote &r, R2C2::Client &c, R2C2::NetTrain &t):
        }
 
        Glib::RefPtr<Gtk::ListStore> route_store = Gtk::ListStore::create(route_columns);
-       vbox->add(*manage(cmb_route = new Gtk::ComboBox(route_store)));
+       vbox->add(*manage(cmb_route = new Gtk::ComboBox(static_cast<const Glib::RefPtr<Gtk::TreeModel> &>(route_store))));
        cmb_route->pack_start(route_columns.name);
        route_store->append();
        const list<string> &routes = client.get_routes();