Discussion:
[KPhotoAlbum] Warning with gcc7
Robert Krawitz
2017-10-20 01:15:44 UTC
Permalink
Got this warning with gcc7:

In file included from /home/rlk/sandbox/kphotoalbum/BackgroundTaskManager/PriorityQueue.cpp:21:0:
/home/rlk/sandbox/kphotoalbum/Utilities/AlgorithmHelper.h:18:6: warning: mangled name for ‘bool Utilities::all_of(const Container&, UnaryPredicate) [with Container = QVector<QQueue<BackgroundTaskManager::JobInterface*> >; UnaryPredicate = std::_Mem_fn<bool (QList<BackgroundTaskManager::JobInterface*>::*)() const noexcept>]’ will change in C++17 because the exception specification is part of a function type [-Wnoexcept-type]
bool all_of( const Container& container, UnaryPredicate p) {
^~~~~~
--
Robert Krawitz <***@alum.mit.edu>

*** MIT Engineers A Proud Tradition http://mitathletics.com ***
Member of the League for Programming Freedom -- http://ProgFree.org
Project lead for Gutenprint -- http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton
Johannes Zarl-Zierl
2017-10-22 16:37:22 UTC
Permalink
Hi Robert,
Post by Robert Krawitz
In file included from
mangled name for ‘bool Utilities::all_of(const Container&, UnaryPredicate)
[with Container = QVector<QQueue<BackgroundTaskManager::JobInterface*> >;
UnaryPredicate = std::_Mem_fn<bool
(QList<BackgroundTaskManager::JobInterface*>::*)() const noexcept>]’ will
change in C++17 because the exception specification is part of a function
type [-Wnoexcept-type] bool all_of( const Container& container,
UnaryPredicate p) {
^~~~~~
I know. I'll probably just silence it because it only affects binary
compatibility (which is a non-issue in this case)...

Cheers,
Johannes

Loading...