From: Simon Marchi Date: Wed, 25 Mar 2020 22:39:30 +0000 (-0400) Subject: Fix: common: add `void` parameter to log_add_time declaration X-Git-Tag: v2.13.0-rc1~711 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=898ba13216992affd6cb40fe11c64bdc6e65ca9e;hp=20095472d0b5db48cbfb4c912a22d9ab1e3d1c63;ds=sidebyside Fix: common: add `void` parameter to log_add_time declaration It makes it match the definition and fixes this warning: CC error.lo /home/smarchi/src/lttng-tools/src/common/error.c:33:13: error: no previous prototype for ‘log_add_time’ [-Werror=missing-prototypes] const char *log_add_time(void) ^~~~~~~~~~~~ Change-Id: Ibbf5eebd8171504bc7050c754e2a5d113b6b5387 Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/error.h b/src/common/error.h index 5218869da..33a299c4e 100644 --- a/src/common/error.h +++ b/src/common/error.h @@ -224,6 +224,6 @@ const char *error_get_str(int32_t code); * the caller. On error, an empty string is returned thus no time will be * printed in the log. */ -const char *log_add_time(); +const char *log_add_time(void); #endif /* _ERROR_H */