|
From: Allin C. <cot...@wf...> - 2008-01-16 19:32:10
|
When cross-building wgnuplot.exe on Linux using mingw,
I get this warning:
win/wmenu.c: In function `SendMacro':
win/wmenu.c:402: warning: passing arg 1 of `_getcwd' from
incompatible pointer type
The call in wmenu.c is
char cwd[MAX_PATH];
<snip>
_getcwd(&cwd, sizeof(cwd));
And msdn
http://msdn2.microsoft.com/en-us/library/sf98bd4y(VS.80).aspx
gives as prototype for _getcwd:
char *_getcwd(
char *buffer,
int maxlen
);
So it looks as if the call is indeed wrong -- the first arg should
be cwd, not &cwd? -- but I might be missing something.
--
Allin Cottrell
Department of Economics
Wake Forest University, NC
|