This allows gcc to check format strings used in pr_* calls. Signed-off-by: Miroslav Lichvar <mlich...@redhat.com> --- print.h | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/print.h b/print.h index 56b2104..f5ed248 100644 --- a/print.h +++ b/print.h @@ -25,6 +25,9 @@ #define PRINT_LEVEL_MIN LOG_EMERG #define PRINT_LEVEL_MAX LOG_DEBUG +#ifdef __GNUC__ +__attribute__ ((format (printf, 2, 3))) +#endif void print(int level, char const *format, ...); void print_set_progname(const char *name); -- 1.8.4.2 ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel