[Debian-med-packaging] Bug#811866: More C++ help needed (Was: Bug#811866: fixed in hyphy 2.2.6+dfsg-4)

Jakub Wilk jwilk at debian.org
Sun Aug 14 20:41:41 UTC 2016


* Andreas Tille <andreas at an3as.eu>, 2016-08-14, 21:53:
>/build/hyphy-2.2.6+dfsg/src/gui/HYChartWindow.cpp:3010:54: error: no matching function for call to '_Formula::_Formula(_String&, NULL, bool)'
>                     _Formula f (*thisString,nil,false);
>                                                      ^

If you build against g++-5 (or look up old build logs on buildd.d.o), 
you get a helpful warning for this line:

HYChartWindow.cpp:3010:54: warning: converting 'false' to pointer type for argument 3 of '_Formula::_Formula(_String&, _VariableContainer*, _String*)' [-Wconversion-null]
                     _Formula f (*thisString,nil,false);
                                                      ^

This code relied on automatic conversion from "false" to null pointer, 
which was always a dubious feature, and now no longer works in GCC 6. 
Changing "false" to "nil" should fix this.

-- 
Jakub Wilk



More information about the Debian-med-packaging mailing list