You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building ConTagModel from the contag-problem produces compiler warnings. The partial output being:
src/problems/conttag/ContTagModel.hpp:288:22: warning: the compiler can assume that the
address of ‘baseAction’ will never be NULL [-Waddress]
assert(&baseAction != nullptr);
~~~~~~~~~~~~^~~~
The warning comes from this line: assert(&baseAction != nullptr);. It is part of some function which takes baseAction as argument by reference. As far as I know references in C++ can never point to NULL. So the assert line can safely be omitted, which fixes the compiler warnings as well.
Building ConTagModel from the contag-problem produces compiler warnings. The partial output being:
The warning comes from this line:
assert(&baseAction != nullptr);
. It is part of some function which takesbaseAction
as argument by reference. As far as I know references in C++ can never point to NULL. So the assert line can safely be omitted, which fixes the compiler warnings as well.Some discussion about it:
The text was updated successfully, but these errors were encountered: