Changeset e24c0af in git


Ignore:
Timestamp:
2011-04-18T08:11:59Z (8 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
c6477d8
Parents:
13e1835
Message:

fixed #236: kill gcc false warning

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@770 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • processor/head.m4

    r6e4375d re24c0af  
    141141#define C_RELAYLINE , __LINE__
    142142')
    143 static inline void xc_calc_string_n(xc_processor_t *processor, zend_uchar type, const zstr const str, long size IFASSERT(`, int relayline')) {
     143static inline void xc_calc_string_n(xc_processor_t *processor, zend_uchar type, const_zstr const str, long size IFASSERT(`, int relayline')) {
    144144    pushdef(`__LINE__', `relayline')
    145145    int realsize = UNISW(size, (type == IS_UNICODE) ? UBYTES(size) : size);
     
    163163/* {{{ xc_store_string_n */
    164164REDEF(`KIND', `store')
    165 static inline zstr xc_store_string_n(xc_processor_t *processor, zend_uchar type, const zstr const str, long size IFASSERT(`, int relayline')) {
     165static inline zstr xc_store_string_n(xc_processor_t *processor, zend_uchar type, const_zstr const str, long size IFASSERT(`, int relayline')) {
    166166    pushdef(`__LINE__', `relayline')
    167167    int realsize = UNISW(size, (type == IS_UNICODE) ? UBYTES(size) : size);
  • xcache.h

    r13e1835 re24c0af  
    138138#ifndef IS_UNICODE
    139139typedef char *zstr;
     140typedef const char *const_zstr;
    140141#   define ZSTR_S(s)     (s)
    141142#   define ZSTR_U(s)     (s)
     
    145146#   define ZSTR_PV(s)    (s)
    146147#else
     148typedef const zstr const_zstr;
    147149#   define ZSTR_S(zs)    ((zs).s)
    148150#   define ZSTR_U(zs)    ((zs).u)
Note: See TracChangeset for help on using the changeset viewer.