summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2020-03-21 22:23:19 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2020-03-21 22:30:59 +0100
commitf455f8633e3d829bca46dae68e0fb5ca10e8e139 (patch)
tree974bae29c23c8f4952506d1cd5b8b6d77970da8d
parentsd-bus: add sd_bus_message_seal docs + cleanups (diff)
downloadsystemd-f455f8633e3d829bca46dae68e0fb5ca10e8e139.tar.xz
systemd-f455f8633e3d829bca46dae68e0fb5ca10e8e139.zip
Silence Wstring-plus-int warning when using clangd with GCC.
-rw-r--r--src/basic/log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/log.h b/src/basic/log.h
index 625be22402..740fdbf617 100644
--- a/src/basic/log.h
+++ b/src/basic/log.h
@@ -74,7 +74,7 @@ int log_get_max_level_realm(LogRealm realm) _pure_;
*/
assert_cc(STRLEN(__FILE__) > STRLEN(RELATIVE_SOURCE_PATH) + 1);
-#define PROJECT_FILE (__FILE__ + STRLEN(RELATIVE_SOURCE_PATH) + 1)
+#define PROJECT_FILE (&__FILE__[STRLEN(RELATIVE_SOURCE_PATH) + 1])
int log_open(void);
void log_close(void);