Codechange: use fmt::format and time conversions over "custom" implementation

This commit is contained in:
Rubidium
2023-05-20 16:14:12 +02:00
committed by rubidium42
parent eb635b85bb
commit a19a43a4f7
7 changed files with 13 additions and 105 deletions

View File

@@ -93,7 +93,6 @@
/* Warn about functions using 'printf' format syntax. First argument determines which parameter
* is the format string, second argument is start of values passed to printf. */
# define WARN_FORMAT(string, args) __attribute__ ((format (printf, string, args)))
# define WARN_TIME_FORMAT(string) __attribute__ ((format (strftime, string, 0)))
# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)
# define FINAL final
# else
@@ -129,7 +128,6 @@
# define NORETURN
# define CDECL
# define WARN_FORMAT(string, args)
# define WARN_TIME_FORMAT(string)
# define FINAL
# define FALLTHROUGH
# include <malloc.h>
@@ -172,7 +170,6 @@
# define CDECL _cdecl
# define WARN_FORMAT(string, args)
# define WARN_TIME_FORMAT(string)
# define FINAL final
/* fallthrough attribute, VS 2017 */