sttarg.h and va_list problem

Questions about Wine on Linux
Locked
blake1024
Level 1
Level 1
Posts: 5
Joined: Thu Nov 26, 2015 12:37 am

sttarg.h and va_list problem

Post by blake1024 »

Greetings,

Building with 64 bit Wine 1.6.2 on 64 bit Linux. Have code like this:

Code: Select all

#include <stdarg.h>
...

... vSetStringValue(object self, va_list _rest_)
{ 
        char * fmt = va_arg(_rest_, char *);
	char *buf = gGetBuf(Application); 
	MAKE_REST(fmt); 

	vsprintf(buf, fmt, _rest_); 
	...
} 

but getting:

Code: Select all

StatusWindow.d: In function ‘StatusWindow_ivm_vSetStringValue’:
StatusWindow.d:115:2: warning: passing argument 3 of ‘vsprintf’ from incompatible pointer type [enabled by default]
  vsprintf(buf, fmt, _rest_);
  ^
In file included from ../include/dynl.h:110:0,
                 from ../include/generics.h:55,
                 from StatusWindow.c:42:
/usr/include/wine/msvcrt/stdio.h:182:16: note: expected ‘__builtin_ms_va_list’ but argument is of type ‘struct __va_list_tag *’
 int    __cdecl vsprintf(char*,const char*,__ms_va_list);
                ^
Thanks.

Blake McBride
User avatar
dimesio
Moderator
Moderator
Posts: 13207
Joined: Tue Mar 25, 2008 10:30 pm

Re: sttarg.h and va_list problem

Post by dimesio »

Your Wine version is two years old. Upgrade to 1.8-rc2, and if the problem is still present, file a bug.
Locked