Skip to content

Commit 6e5377c

Browse files
committed
fixed compilation warnings on big endian system
1 parent 68a5648 commit 6e5377c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Zend/zend_execute_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ZEND_API void (*zend_execute_ex)(zend_execute_data *execute_data);
4646
ZEND_API void (*zend_execute_internal)(zend_execute_data *execute_data, zval *return_value);
4747

4848
/* true globals */
49-
ZEND_API const zend_fcall_info empty_fcall_info = { 0, {{0}, {{0}}, {0}}, NULL, NULL, NULL, 0, 0 };
49+
ZEND_API const zend_fcall_info empty_fcall_info = { 0, {{0}}, NULL, NULL, NULL, 0, 0 };
5050
ZEND_API const zend_fcall_info_cache empty_fcall_info_cache = { NULL, NULL, NULL, NULL };
5151

5252
#ifdef ZEND_WIN32

ext/ffi/ffi_parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ static int get_skip_sym(void) {
313313
int ch;
314314
int ret;
315315
int accept = -1;
316-
const unsigned char *accept_pos;
316+
const unsigned char *accept_pos = NULL;
317317
const unsigned char *cpos = yy_pos;
318318
const unsigned char *cend = yy_end;
319319

ext/hash/hash_sha3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ static inline uint64_t load64(const unsigned char* x) {
4949
return ret;
5050
}
5151
static inline void store64(unsigned char* x, uint64_t val) {
52-
char i;
52+
unsigned char i;
5353
for (i = 0; i < 8; ++i) {
5454
x[i] = val & 0xFF;
5555
val >>= 8;
5656
}
5757
}
5858
static inline void xor64(unsigned char* x, uint64_t val) {
59-
char i;
59+
unsigned char i;
6060
for (i = 0; i < 8; ++i) {
6161
x[i] ^= val & 0xFF;
6262
val >>= 8;

ext/intl/collator/collator_is_numeric.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static double collator_u_strtod(const UChar *nptr, UChar **endptr) /* {{{ */
6969
char buf[64], *numbuf, *bufpos;
7070
size_t length = u - nstart;
7171
double value;
72-
ALLOCA_FLAG(use_heap);
72+
ALLOCA_FLAG(use_heap = 0);
7373

7474
if (length < sizeof(buf)) {
7575
numbuf = buf;

ext/pdo/pdo_stmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ static int do_fetch(pdo_stmt_t *stmt, int do_bind, zval *return_value, enum pdo_
750750
{
751751
int flags, idx, old_arg_count = 0;
752752
zend_class_entry *ce = NULL, *old_ce = NULL;
753-
zval grp_val, *pgrp, retval, old_ctor_args = {{0}, {{0}}, {0}};
753+
zval grp_val, *pgrp, retval, old_ctor_args = {{0}};
754754
int colno;
755755

756756
if (how == PDO_FETCH_USE_DEFAULT) {

0 commit comments

Comments
 (0)