Skip to content

Commit

Permalink
Reduce compilation noise during normal compilation:
Browse files Browse the repository at this point in the history
    php-5.5/ext/session/session.c:836: warning: unused variable ‘struc’
    php-5.5/ext/session/session.c:836: warning: unused variable ‘num_key’
    php-5.5/ext/session/session.c:836: warning: unused variable ‘key_length’
    php-5.5/ext/session/session.c:836: warning: unused variable ‘key’
    php-5.5/ext/session/session.c:835: warning: unused variable ‘key_type’
    php-5.5/ext/session/session.c:834: warning: unused variable ‘_ht’
    php-5.5/ext/session/session.c:857: warning: unused variable ‘has_value’
    php-5.5/ext/session/session.c:856: warning: unused variable ‘namelen’
    php-5.5/ext/session/session.c:853: warning: unused variable ‘name’
    php-5.5/ext/session/session.c:852: warning: unused variable ‘p’

    php-5.5/ext/session/mod_user.c:191: warning: unused variable ‘ret’
  • Loading branch information
cjbj committed Aug 21, 2013
1 parent 6181948 commit d85827f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion ext/session/mod_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ PS_CREATE_SID_FUNC(user)
/* maintain backwards compatibility */
if (PSF(create_sid) != NULL) {
char *id = NULL;
STDVARS;
zval *retval = NULL;

retval = ps_call_handler(PSF(create_sid), 0, NULL TSRMLS_CC);

Expand Down
7 changes: 0 additions & 7 deletions ext/session/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,9 +831,6 @@ PS_SERIALIZER_ENCODE_FUNC(php_serialize) /* {{{ */
{
smart_str buf = {0};
php_serialize_data_t var_hash;
HashTable *_ht = Z_ARRVAL_P(PS(http_session_vars));
int key_type;
PS_ENCODE_VARS;

PHP_VAR_SERIALIZE_INIT(var_hash);
php_var_serialize(&buf, &PS(http_session_vars), &var_hash TSRMLS_CC);
Expand All @@ -849,12 +846,8 @@ PS_SERIALIZER_ENCODE_FUNC(php_serialize) /* {{{ */

PS_SERIALIZER_DECODE_FUNC(php_serialize) /* {{{ */
{
const char *p;
char *name;
const char *endptr = val + vallen;
zval *session_vars;
int namelen;
int has_value;
php_unserialize_data_t var_hash;

PHP_VAR_UNSERIALIZE_INIT(var_hash);
Expand Down

0 comments on commit d85827f

Please sign in to comment.