Changeset c8752175 in mainline for uspace/lib/c/include/io/verify.h


Ignore:
Timestamp:
2013-03-10T21:57:51Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
39ba6d5
Parents:
05bab88
Message:

clang can check printf too (-Wformat)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/io/verify.h

    r05bab88 rc8752175  
    3838#ifndef NVERIFY_PRINTF
    3939
     40#ifdef __clang__
     41#define PRINTF_ATTRIBUTE(start, end) \
     42        __attribute__((format(__printf__, start, end)))
     43#else
    4044#define PRINTF_ATTRIBUTE(start, end) \
    4145        __attribute__((format(gnu_printf, start, end)))
     46#endif
    4247
    4348#else /* NVERIFY_PRINTF */
Note: See TracChangeset for help on using the changeset viewer.