Anomalie #189
closedFix vasprintf signature
0%
Description
make check fails when configured with --disable-memdbg :
cppunit_memory.cc: In member function ‘void TestMemory::Vasprintf()’:
cppunit_memory.cc:105:46: error: invalid conversion from ‘int’ to ‘__va_list_tag*’ [-fpermissive]
int l_i = vasprintf(&l_teststr,"%d",1);
^
In file included from /usr/include/c++/4.9/cstdio:42:0,
from /usr/include/c++/4.9/fstream:41,
from /usr/include/cppunit/portability/Stream.h:284,
from /usr/include/cppunit/TestAssert.h:7,
from /usr/include/cppunit/TestCase.h:6,
from /usr/include/cppunit/TestCaller.h:5,
from /usr/include/cppunit/extensions/HelperMacros.h:9,
from cppunit_memory.cc:37:
/usr/include/stdio.h:399:12: note: initializing argument 3 of ‘int vasprintf(char**, const char*, _va_list_tag*)’
extern int vasprintf (char **_restrict _ptr, const char *_restrict __f,
^
Updated by François Cerbelle almost 5 years ago
- Status changed from Nouveau to Résolu
Updated by François Cerbelle almost 5 years ago
- Status changed from Résolu to Fermé