Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset c8752175 in mainline


Ignore:
Timestamp:
2013-03-10T21:57:51Z (9 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
Children:
39ba6d5
Parents:
05bab88
Message:

clang can check printf too (-Wformat)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/printf/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
     47
    4248
    4349#else /* NVERIFY_PRINTF */
  • 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.