IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2007, 3:40:08 PM (19 years ago)
Author:
jhoblitt
Message:

gcc attribute cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psError.h

    r11694 r14452  
    1212 *  @author Joshua Hoblitt, University of Hawaii
    1313 *
    14  *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2007-02-08 01:59:28 $
     14 *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2007-08-09 01:40:07 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2828#include<stdarg.h>
    2929
     30#include "psType.h"
    3031#include "psErrorCodes.h"
    3132
     
    101102    const char* format,                ///< printf-style format of header line
    102103    ...                                ///< any parameters required in format
    103 #ifdef __GNUC__
    104 ) __attribute__((format(printf, 2, 3)));
    105 #else // ifdef __GNUC__
    106 );
    107 #endif // ifdef __GNUC__
    108 
     104) PS_ATTR_FORMAT(printf, 2, 3);
    109105
    110106#ifndef SWIG
     
    151147    const char* format,                ///< printf-style format of header line
    152148    ...                                ///< any parameters required in format
    153 #ifdef __GNUC__
    154 ) __attribute__((format(printf, 6, 7)));
    155 #else // ifdef __GNUC__
    156 );
    157 #endif // ifdef __GNUC__
     149) PS_ATTR_FORMAT(printf, 6, 7);
    158150#ifndef SWIG
    159151#define psError(code,new,...) \
     
    182174    const char* format,                ///< printf-style format of header line
    183175    ...                                ///< any parameters required in format
    184 #ifdef __GNUC__
    185 ) __attribute__((format(printf, 4, 5)));
    186 #else // ifdef __GNUC__
    187 );
    188 #endif // ifdef __GNUC__
     176) PS_ATTR_FORMAT(printf, 4, 5);
    189177#ifndef SWIG
    190178#define psWarning(...) \
     
    204192    psErrorCode code,                  ///< Error class code
    205193    const char* msg                    ///< Error message
    206 );
     194) PS_ATTR_MALLOC;
    207195
    208196/// @}
Note: See TracChangeset for help on using the changeset viewer.