modal-inria / MixtComp

Model-based clustering package for mixed data
Other
12 stars 4 forks source link

c++ warnings ignoring return value #45

Closed Quentin62 closed 1 year ago

Quentin62 commented 1 year ago

To correct before 10/05

https://cran.r-project.org/web/checks/check_results_RMixtCompIO.html

Version: 4.0.9
Check: whether package can be installed
Result: WARN
    Found the following significant warnings:
     RGraph.cpp:95:58: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
     RGraph.h:122:41: warning: ignoring return value of 'std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
    See ‘/data/gannet/ripley/R/packages/tests-devel/RMixtCompIO.Rcheck/00install.out’ for details.
    * used C++ compiler: ‘g++-13 (GCC) 13.1.0’

Flavor: r-devel-linux-x86_64-fedora-gcc