From ce075d9cbdae5feef4804a362495512147be06c4 Mon Sep 17 00:00:00 2001 From: Hinnerk van Bruinehsen Date: Sat, 18 Oct 2014 14:08:12 +0200 Subject: [PATCH] lint: suppress warning about obsoleteFuntionsasctime --- sys/shell/commands/sc_rtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/shell/commands/sc_rtc.c b/sys/shell/commands/sc_rtc.c index 21d0302454..456066e49e 100644 --- a/sys/shell/commands/sc_rtc.c +++ b/sys/shell/commands/sc_rtc.c @@ -27,6 +27,8 @@ static void _gettime_handler(void) struct tm now; rtc_get_localtime(&now); + /* cppcheck: see man 3 asctime: obsoleted by POSIX.1-2008 */ + /* cppcheck-suppress obsoleteFunctionsasctime */ printf("%s", asctime(&now)); }