Changeset 770 for trunk


Ignore:
Timestamp:
2011-04-18T10:11:59+02:00 (4 years ago)
Author:
moo
Message:

fixed #236: kill gcc false warning

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/head.m4

    r737 r770  
    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);
  • trunk/xcache.h

    r769 r770  
    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.