Hi,
I was coming back to an issue I saw in the past but didn't anything. I
think it is related to all qmail derivates. At least qmail-1.03 and
netqmail-1.06 are affected as s/qmail-3.01 too.
During make several times gcc creates a warning for .c files which uses
the SUBSTDIO_FDBUF macro, defined in substdio.h. This example reproduces
it:
# gcc -fsyntax-only subfderr.c
subfderr.c:8:1: warning: initialization from incompatible pointer type
static substdio it = SUBSTDIO_FDBUF(write,2,subfd_errbuf,256);
^
subfderr.c:8:1: warning: (near initialization for ‘it.op’)
With my rudimental C expierience I would expect that a cast have to be
done, but maybe I'm wrong. So the questions are
1. Does anybody have had the same issue and did solve it? What is the
solution?
2. Could anybody provide a solution or point me in the right direction?
3. In case a pointer cast is needed, where have it be done?
System is an up-to-date Gentoo with gcc-4.9.3.
Any help is appreciated.
thanks and regards
Kai
--
-â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â
Dyn@mic IP'ing: http://dyndn.es
!!! DynDN.eS is NOT dyn.com !!!
I was coming back to an issue I saw in the past but didn't anything. I
think it is related to all qmail derivates. At least qmail-1.03 and
netqmail-1.06 are affected as s/qmail-3.01 too.
During make several times gcc creates a warning for .c files which uses
the SUBSTDIO_FDBUF macro, defined in substdio.h. This example reproduces
it:
# gcc -fsyntax-only subfderr.c
subfderr.c:8:1: warning: initialization from incompatible pointer type
static substdio it = SUBSTDIO_FDBUF(write,2,subfd_errbuf,256);
^
subfderr.c:8:1: warning: (near initialization for ‘it.op’)
With my rudimental C expierience I would expect that a cast have to be
done, but maybe I'm wrong. So the questions are
1. Does anybody have had the same issue and did solve it? What is the
solution?
2. Could anybody provide a solution or point me in the right direction?
3. In case a pointer cast is needed, where have it be done?
System is an up-to-date Gentoo with gcc-4.9.3.
Any help is appreciated.
thanks and regards
Kai
--
-â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â -â
Dyn@mic IP'ing: http://dyndn.es
!!! DynDN.eS is NOT dyn.com !!!