Bug #12842: TSRM/tsrm_virtual_cwd.c:568: `mode_t' is promoted to `int'
| From: | richard_hickerson at agilent dot com | Date: | Sun, 19 Aug 2001 14:40:46 +0000 |
| Subject: | Bug #12842: TSRM/tsrm_virtual_cwd.c:568: `mode_t' is promoted to `int' | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-63730@lists.php.net to get a copy of this message | ||
From: richard_hickerson@agilent.com
Operating system: HP-UX 10.20 and 11.0
PHP version: 4.0.6
PHP Bug Type: Compile Failure
Bug description: TSRM/tsrm_virtual_cwd.c:568:
mode_t' is promoted to int'
gcc 3.0:
Making all in TSRM
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../main -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8
-DXML_BYTE_ORDER=21 -g -O2 -c TSRM.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../main -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8
-DXML_BYTE_ORDER=21 -g -O2 -c tsrm_strtok_r.c
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../main -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8
-DXML_BYTE_ORDER=21 -g -O2 -c tsrm_virtual_cwd.c
tsrm_virtual_cwd.c: In function `virtual_open':
tsrm_virtual_cwd.c:568: mode_t' is promoted to int' when passed through
`...'
tsrm_virtual_cwd.c:568: (so you should pass int' not mode_t' to
`va_arg')
------------
Changing "mode_t" to "int" on tsrm_virtual_cwd.c:568 eliminates the
error.
--
Edit bug report at: http://bugs.php.net/?id=12842&edit=1