Index: examples/howto/selection/selection.cc =================================================================== --- examples/howto/selection/selection.cc (revision 20814) +++ examples/howto/selection/selection.cc (working copy) @@ -47,7 +47,7 @@ cout << " * type() = " << selection_data.get_type() << endl; cout << " * format() = " << selection_data.format() << endl; cout.setf(ios_base::hex, ios_base::basefield); - cout << " * data() = 0x" << reinterpret_cast(selection_data.data()) << endl; + cout << " * data() = 0x" << static_cast(*selection_data.data()) << endl; cout.setf(ios_base::dec, ios_base::basefield); cout << " * length() = " << selection_data.length() << endl << endl; Index: examples/core/iochannel/iochannel.cc =================================================================== --- examples/core/iochannel/iochannel.cc (revision 20814) +++ examples/core/iochannel/iochannel.cc (working copy) @@ -62,7 +62,7 @@ String buffer; int read_length = 0; - unsigned int length_out = 0; + size_t length_out = 0; long write_length = 0; while (true) @@ -76,7 +76,7 @@ read_length += buffer.size(); do - status = gio_write->write(buffer, &length_out, &error); + status = gio_write->write(buffer.c_str(), &length_out, &error); while (status == G::IO_STATUS_AGAIN); if (status != G::IO_STATUS_NORMAL) break;