curl-library
Re: NSS and configure and pkg-config
Date: Sun, 6 Sep 2009 09:45:48 +0200
On Sunday 06 of September 2009 05:28:52 Guenter wrote:
> ok, the first one in pratom.h was easy:
> http://svwe20.itex.at/~autobuilder/nspr4/
> for the other warnings in prlink.h I'm no sure;
>
> prlink.h:52: warning: function declaration isn't a prototype
>
> 50: typedef struct PRStaticLinkTable {
> 51: const char *name;
> 52: void (*fp)();
> 53: } PRStaticLinkTable;
>
> prlink.h:209: warning: function declaration isn't a prototype
> 209: typedef void (*PRFuncPtr)();
>
> any suggestions I could try to fix these are welcome!
The fix is easy. If a function has no arguments, it's argument list should be
declared void, e.g.:
typedef void (*PRFuncPtr)(); --> typedef void (*PRFuncPtr)(void);
However this should be fixed by NSPR maintainers I think...
Kamil
Received on 2009-09-06