mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Suppress a dozen unused return value warnings in places where the return
value is really not useful to us.
This commit is contained in:
parent
75ec1fedc7
commit
a5eeecb13f
7 changed files with 15 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* Generated by re2c 0.13.5 on Sun May 8 16:20:00 2011 */
|
/* Generated by re2c 0.13.5 on Mon May 16 10:21:08 2011 */
|
||||||
#line 1 "Zend/zend_language_scanner.l"
|
#line 1 "Zend/zend_language_scanner.l"
|
||||||
/*
|
/*
|
||||||
+----------------------------------------------------------------------+
|
+----------------------------------------------------------------------+
|
||||||
|
@ -4148,9 +4148,9 @@ yy316:
|
||||||
if (strcmp(dirname, ".") == 0) {
|
if (strcmp(dirname, ".") == 0) {
|
||||||
dirname = erealloc(dirname, MAXPATHLEN);
|
dirname = erealloc(dirname, MAXPATHLEN);
|
||||||
#if HAVE_GETCWD
|
#if HAVE_GETCWD
|
||||||
VCWD_GETCWD(dirname, MAXPATHLEN);
|
php_ignore_value(VCWD_GETCWD(dirname, MAXPATHLEN));
|
||||||
#elif HAVE_GETWD
|
#elif HAVE_GETWD
|
||||||
VCWD_GETWD(dirname);
|
php_ignore_value(VCWD_GETWD(dirname));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1614,9 +1614,9 @@ NEWLINE ("\r"|"\n"|"\r\n")
|
||||||
if (strcmp(dirname, ".") == 0) {
|
if (strcmp(dirname, ".") == 0) {
|
||||||
dirname = erealloc(dirname, MAXPATHLEN);
|
dirname = erealloc(dirname, MAXPATHLEN);
|
||||||
#if HAVE_GETCWD
|
#if HAVE_GETCWD
|
||||||
VCWD_GETCWD(dirname, MAXPATHLEN);
|
php_ignore_value(VCWD_GETCWD(dirname, MAXPATHLEN));
|
||||||
#elif HAVE_GETWD
|
#elif HAVE_GETWD
|
||||||
VCWD_GETWD(dirname);
|
php_ignore_value(VCWD_GETWD(dirname));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Generated by re2c 0.13.5 on Sun May 8 16:20:00 2011 */
|
/* Generated by re2c 0.13.5 on Mon May 16 10:21:08 2011 */
|
||||||
#line 3 "Zend/zend_language_scanner_defs.h"
|
#line 3 "Zend/zend_language_scanner_defs.h"
|
||||||
|
|
||||||
enum YYCONDTYPE {
|
enum YYCONDTYPE {
|
||||||
|
|
|
@ -484,7 +484,7 @@ PHP_FUNCTION(proc_nice)
|
||||||
}
|
}
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
nice(pri);
|
php_ignore_value(nice(pri));
|
||||||
if (errno) {
|
if (errno) {
|
||||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Only a super user may attempt to increase the priority of a process");
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Only a super user may attempt to increase the priority of a process");
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
|
|
|
@ -1808,7 +1808,7 @@ static const char *php_fgetcsv_lookup_trailing_spaces(const char *ptr, size_t le
|
||||||
case -2:
|
case -2:
|
||||||
case -1:
|
case -1:
|
||||||
inc_len = 1;
|
inc_len = 1;
|
||||||
php_mblen(NULL, 0);
|
php_ignore_value(php_mblen(NULL, 0));
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
goto quit_loop;
|
goto quit_loop;
|
||||||
|
@ -2072,7 +2072,7 @@ PHPAPI void php_fgetcsv(php_stream *stream, char delimiter, char enclosure, char
|
||||||
zend_bool first_field = 1;
|
zend_bool first_field = 1;
|
||||||
|
|
||||||
/* initialize internal state */
|
/* initialize internal state */
|
||||||
php_mblen(NULL, 0);
|
php_ignore_value(php_mblen(NULL, 0));
|
||||||
|
|
||||||
/* Now into new section that parses buf for delimiter/enclosure fields */
|
/* Now into new section that parses buf for delimiter/enclosure fields */
|
||||||
|
|
||||||
|
@ -2105,7 +2105,7 @@ PHPAPI void php_fgetcsv(php_stream *stream, char delimiter, char enclosure, char
|
||||||
case -2:
|
case -2:
|
||||||
case -1:
|
case -1:
|
||||||
inc_len = 1;
|
inc_len = 1;
|
||||||
php_mblen(NULL, 0);
|
php_ignore_value(php_mblen(NULL, 0));
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
goto quit_loop_1;
|
goto quit_loop_1;
|
||||||
|
@ -2199,7 +2199,7 @@ PHPAPI void php_fgetcsv(php_stream *stream, char delimiter, char enclosure, char
|
||||||
|
|
||||||
case -2:
|
case -2:
|
||||||
case -1:
|
case -1:
|
||||||
php_mblen(NULL, 0);
|
php_ignore_value(php_mblen(NULL, 0));
|
||||||
/* break is omitted intentionally */
|
/* break is omitted intentionally */
|
||||||
case 1:
|
case 1:
|
||||||
/* we need to determine if the enclosure is
|
/* we need to determine if the enclosure is
|
||||||
|
@ -2267,7 +2267,7 @@ PHPAPI void php_fgetcsv(php_stream *stream, char delimiter, char enclosure, char
|
||||||
case -2:
|
case -2:
|
||||||
case -1:
|
case -1:
|
||||||
inc_len = 1;
|
inc_len = 1;
|
||||||
php_mblen(NULL, 0);
|
php_ignore_value(php_mblen(NULL, 0));
|
||||||
/* break is omitted intentionally */
|
/* break is omitted intentionally */
|
||||||
case 1:
|
case 1:
|
||||||
if (*bptr == delimiter) {
|
if (*bptr == delimiter) {
|
||||||
|
@ -2298,7 +2298,7 @@ PHPAPI void php_fgetcsv(php_stream *stream, char delimiter, char enclosure, char
|
||||||
case -2:
|
case -2:
|
||||||
case -1:
|
case -1:
|
||||||
inc_len = 1;
|
inc_len = 1;
|
||||||
php_mblen(NULL, 0);
|
php_ignore_value(php_mblen(NULL, 0));
|
||||||
/* break is omitted intentionally */
|
/* break is omitted intentionally */
|
||||||
case 1:
|
case 1:
|
||||||
if (*bptr == delimiter) {
|
if (*bptr == delimiter) {
|
||||||
|
|
|
@ -843,7 +843,7 @@ PHP_FUNCTION(proc_open)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (cwd) {
|
if (cwd) {
|
||||||
chdir(cwd);
|
php_ignore_value(chdir(cwd));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (env.envarray) {
|
if (env.envarray) {
|
||||||
|
|
|
@ -1354,7 +1354,7 @@ PHPAPI void php_basename(char *s, size_t len, char *suffix, size_t sufflen, char
|
||||||
case -2:
|
case -2:
|
||||||
case -1:
|
case -1:
|
||||||
inc_len = 1;
|
inc_len = 1;
|
||||||
php_mblen(NULL, 0);
|
php_ignore_value(php_mblen(NULL, 0));
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
goto quit_loop;
|
goto quit_loop;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue