Ignore:
Timestamp:
09/12/12 16:22:42 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Added compiler checks for printf() like format strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/roaraudio/compilerhacks.h

    r5381 r5651  
    3838#define _LIBROAR_ATTR_PURE              __attribute__ ((pure)) 
    3939#define _LIBROAR_ATTR_USE_RESULT        __attribute__ ((warn_unused_result)) 
     40#define _LIBROAR_ATTR_PRINTF(str,args)  __attribute__ ((format (printf, str, args))) 
    4041 
    4142// gcc does not only add a warning on NULL argument for the following 
     
    6768#define _LIBROAR_ATTR_USE_RESULT 
    6869#endif 
     70#ifndef _LIBROAR_ATTR_PRINTF 
     71#define _LIBROAR_ATTR_PRINTF(str,args) 
     72#endif 
    6973 
    7074#ifndef _LIBROAR_IGNORE_RET 
Note: See TracChangeset for help on using the changeset viewer.