Detecting deprecated function usage
- From: Goatfather <goatfather centurylink net>
- To: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Subject: Detecting deprecated function usage
- Date: Fri, 31 Mar 2017 06:56:41 -0700
What must I do to get g++ to complain when it encounters deprecated
GTKMM function calls?
int main ( int argc, char** argv )
{
Glib::RefPtr<Gtk::Application > refApp = Gtk::Application::create ();
Gtk::Label label ( "label" );
label.set_alignment ( 1.0, 0.5 );
return ( 0 );
}
// g++ -Wall test.cc `pkg-config gtkmm-3.0 --cflags --libs`
g++ reports neither warning nor error on the set_alignment reference.
I'm using GTKMM 3.20.1 and set_alignment was deprecated in 3.14.
--
Saying what we think gives us a wider conversational range than saying
what we know.
— Cullen Hightower
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]