summaryrefslogtreecommitdiff
path: root/src/shared/bus-util.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-03-06 09:34:03 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-03-06 10:41:41 +0100
commitf6a8265b9a00a0a9232bfaf0cd5d3962fbc4700a (patch)
tree4c5dd73e95c6d189533dd0ab64125df7c6c2c492 /src/shared/bus-util.h
parenteef03d70c1bedb3aabd4e2bcf10ab1f2678443bf (diff)
downloadsystemd-f6a8265b9a00a0a9232bfaf0cd5d3962fbc4700a.tar.gz
core: drop unnecessary __useless_struct_to_allow_trailing_semicolon__
ISO C does not allow empty statements outside of functions, and gcc will warn the trailing semicolons when compiling with -pedantic: warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic] But our code cannot compile with -pedantic anyway, at least because warning: ISO C does not support ‘__PRETTY_FUNCTION__’ predefined identifier [-Wpedantic] Without -pedatnic, clang and even old gcc (3.4) generate no warnings about those semicolons, so let's just drop __useless_struct_to_allow_trailing_semicolon__.
Diffstat (limited to 'src/shared/bus-util.h')
-rw-r--r--src/shared/bus-util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/bus-util.h b/src/shared/bus-util.h
index 969a444d83..8103f0e9a7 100644
--- a/src/shared/bus-util.h
+++ b/src/shared/bus-util.h
@@ -150,8 +150,7 @@ int bus_log_create_error(int r);
return r; \
\
return 1; \
- } \
- struct __useless_struct_to_allow_trailing_semicolon__
+ }
#define BUS_PROPERTY_DUAL_TIMESTAMP(name, offset, flags) \
SD_BUS_PROPERTY(name, "t", bus_property_get_usec, (offset) + offsetof(struct dual_timestamp, realtime), (flags)), \