I was not able to reproduce any warning in compiling wpng.c using gcc
4.4.1-3ubuntu3 on karmic x86_64.

The fail line reported is:

[...]
279             if ((wpng_info.infile = fdopen(fileno(stdin), "rb")) == NULL) {
[...]

and personally I do not find errors in it.
The source file correctly includes stdio.h for prototypes:

typedef struct _IO_FILE FILE;
extern struct _IO_FILE *stdin;
FILE *fdopen(int fd, const char *mode);
int fileno(FILE *stream);

So we have an int coming from a call to fileno with the correct FILE
structure pointer argument as input to the fdopen function which expects
an integer. And gcc with -wall -pedantic does not report any error. Need
to know which compiler version is used in the automatic test above.

-- 
fileno implicitly converted to pointer
https://bugs.launchpad.net/bugs/402174
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

-- 
universe-bugs mailing list
universe-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/universe-bugs

Reply via email to