Project

General

Profile

Actions

Anomalie #189

closed

Fix vasprintf signature

Added by François Cerbelle about 8 years ago. Updated almost 5 years ago.

Status:
Fermé
Priority:
Normal
Target version:
Start date:
11/22/2016
Due date:
% Done:

0%

Estimated time:

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,
^

Actions

Also available in: Atom PDF