[BACK]Return to cdefs.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / sys

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/sys/cdefs.h between version 1.111 and 1.112

version 1.111, 2013/09/14 13:46:30 version 1.112, 2013/09/15 13:01:37
Line 148 
Line 148 
 #else  #else
 #define __CTASSERT(x)           __CTASSERT0(x, __ctassert, __LINE__)  #define __CTASSERT(x)           __CTASSERT0(x, __ctassert, __LINE__)
 #endif  #endif
 #define __CTASSERT0(x, y, z)    __CTASSERT1(x, y, z)  #define __CTASSERT0(x, y, z)    __CTASSERT1(x, y, z)
 #define __CTASSERT1(x, y, z)    typedef char y ## z[/*CONSTCOND*/(x) ? 1 : -1]  #define __CTASSERT1(x, y, z)    typedef char y ## z[/*CONSTCOND*/(x) ? 1 : -1] __unused
   
 /*  
  * Provide a prologue/epilogue for __CTASSERT uses within a local function  
  * to supress warnings about unused local typedefs  
  */  
 #if __GNUC_PREREQ__(4, 8)  
 #define __CT_LOCAL_PROLOGUE     _Pragma("GCC diagnostic push")  _Pragma("GCC diagnostic ignored \"-Wunused-local-typedefs\"")  
 #define __CT_LOCAL_EPILOGUE     _Pragma("GCC diagnostic pop")  
 #else  
 #define __CT_LOCAL_PROLOGUE  
 #define __CT_LOCAL_EPILOGUE  
 #endif  
   
 /*  /*
  * The following macro is used to remove const cast-away warnings   * The following macro is used to remove const cast-away warnings

Legend:
Removed from v.1.111  
changed lines
  Added in v.1.112

CVSweb <webmaster@jp.NetBSD.org>