Skip to content

Commit 5c02928

Browse files
author
Mikko Koppanen
committed
Merge pull request #107 from remicollet/issue-tests
Build warnings
2 parents 26d65eb + 61896ac commit 5c02928

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

g_fmt.c

+6-4
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ char *php_memcached_g_fmt(register char *b, double x) {
4848
if (sign)
4949
*b++ = '-';
5050
if (decpt == 9999) /* Infinity or Nan */ {
51-
while(*b++ = *s++);
51+
while((*b++ = *s++));
5252
goto done0;
5353
}
5454
if (decpt <= -4 || decpt > se - s + 5) {
5555
*b++ = *s++;
5656
if (*s) {
5757
*b++ = '.';
58-
while(*b = *s++)
58+
while((*b = *s++))
5959
b++;
6060
}
6161
*b++ = 'e';
@@ -80,9 +80,9 @@ char *php_memcached_g_fmt(register char *b, double x) {
8080
*b++ = '.';
8181
for(; decpt < 0; decpt++)
8282
*b++ = '0';
83-
while(*b++ = *s++);
83+
while((*b++ = *s++));
8484
} else {
85-
while(*b = *s++) {
85+
while((*b = *s++)) {
8686
b++;
8787
if (--decpt == 0 && *s)
8888
*b++ = '.';
@@ -94,6 +94,8 @@ char *php_memcached_g_fmt(register char *b, double x) {
9494

9595
done0:
9696
zend_freedtoa(s0);
97+
#ifdef IGNORE_ZERO_SIGN
9798
done:
99+
#endif
98100
return b0;
99101
}

php_memcached_session.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ PS_OPEN_FUNC(memcached)
116116
memcached_sess *memc_sess = PS_GET_MOD_DATA();
117117
memcached_return status;
118118
char *p, *plist_key = NULL;
119-
int plist_key_len;
119+
int plist_key_len = 0;
120120

121121
if (!strncmp((char *)save_path, "PERSISTENT=", sizeof("PERSISTENT=") - 1)) {
122122
zend_rsrc_list_entry *le = NULL;

0 commit comments

Comments
 (0)