Bug 619 - warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
Summary: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-de...
Status: RESOLVED INVALID
Alias: None
Product: PulseView
Classification: Unclassified
Component: Other (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-08 17:57 CEST by Uwe Hermann
Modified: 2015-08-13 16:29 CEST (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Hermann 2015-08-08 17:57:52 CEST
With gcc/g++ 5.2 there are some warnings (errors with -Werror) when building PulseView. Could be an issue in glibmm or such, not sure if it's something that can be fixed in PulseView, but this should be investigated.

[ 25%] Generating __/pv/widgets/moc_colourbutton.cpp
[ 25%] In file included from /usr/include/glibmm-2.4/glibmm/wrap.h:23:0,
                 from /usr/include/glibmm-2.4/glibmm/containerhandle_shared.h:26,
                 from /usr/include/glibmm-2.4/glibmm/arrayhandle.h:23,
                 from /usr/include/glibmm-2.4/glibmm.h:91,
                 from /home/uwe/sr/include/libsigrokcxx/libsigrokcxx.hpp:74,
                 from /home/uwe/code/SIGROK/sigrok-util/cross-compile/linux/build/pulseview/main.cpp:26:
/usr/include/glibmm-2.4/glibmm/objectbase.h:215:13: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
 static std::auto_ptr<Threads::Mutex> extra_object_base_data_mutex;
             ^
In file included from /usr/include/c++/5/memory:81:0,
                 from /usr/include/glibmm-2.4/glibmm/objectbase.h:32,
                 from /usr/include/glibmm-2.4/glibmm/wrap.h:23,
                 from /usr/include/glibmm-2.4/glibmm/containerhandle_shared.h:26,
                 from /usr/include/glibmm-2.4/glibmm/arrayhandle.h:23,
                 from /usr/include/glibmm-2.4/glibmm.h:91,
                 from /home/uwe/sr/include/libsigrokcxx/libsigrokcxx.hpp:74,
                 from /home/uwe/code/SIGROK/sigrok-util/cross-compile/linux/build/pulseview/main.cpp:26:
/usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^

[...]

There are multiple of these warnings during a build.
Comment 1 Uwe Hermann 2015-08-13 16:29:33 CEST
This is an issue in glibmm and has already been fixed there. Closing this bug, as there's nothing we need to (or can) do in sigrok.

Details:
https://mail.gnome.org/archives/gtkmm-list/2015-May/msg00002.html
https://bugzilla.gnome.org/show_bug.cgi?id=748630
https://git.gnome.org/browse/glibmm/commit/?id=0b8237dd0b77a1e2d031256bacd97e13193039bb