Changeset 378


Ignore:
Timestamp:
10/22/12 13:39:59 (12 years ago)
Author:
ymipsl
Message:

supress some warning at compile time

YM

Location:
XIOS/trunk/src/type
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/type/enum_impl.hpp

    r369 r378  
    179179  string CEnum<T>::_toString(void) const 
    180180  { 
    181     if (!empty) return string((T::getStr())[(int)(*ptrValue)]) ; 
     181    if (empty) return string("empty") ; 
     182    return string((T::getStr())[(int)(*ptrValue)]) ; 
    182183  } 
    183184   
     
    191192    else ERROR("template <typename T>  bool CEnum<T>::_toBuffer(CBufferOut& buffer) const", 
    192193               <<"incompatibility between enumeration and standard integer type") ; 
     194    return false ; 
    193195  } 
    194196   
  • XIOS/trunk/src/type/enum_ref_impl.hpp

    r369 r378  
    166166  string CEnum_ref<T>::_toString(void) const 
    167167  { 
    168     if (!empty) return string((T::getStr())[(int)(*ptrValue)]) ; 
     168    if (empty) return string("empty");  
     169    return string((T::getStr())[(int)(*ptrValue)]) ; 
    169170  } 
    170171 
     
    179180    else ERROR("template <typename T>  bool CEnum_ref<T>::_toBuffer(CBufferOut& buffer) const", 
    180181               <<"incompatibility between enumeration and standard integer type") ; 
     182    return false ; 
    181183  } 
    182184   
Note: See TracChangeset for help on using the changeset viewer.