]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/macro.h
core: drop unnecessary __useless_struct_to_allow_trailing_semicolon__ 8372/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 6 Mar 2018 08:34:03 +0000 (09:34 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 6 Mar 2018 09:41:41 +0000 (10:41 +0100)
commitf6a8265b9a00a0a9232bfaf0cd5d3962fbc4700a
tree4c5dd73e95c6d189533dd0ab64125df7c6c2c492
parenteef03d70c1bedb3aabd4e2bcf10ab1f2678443bf
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__.
src/basic/macro.h
src/basic/nss-util.h
src/basic/string-table.h
src/basic/terminal-util.h
src/core/dbus-util.h
src/shared/bus-unit-util.c
src/shared/bus-util.h
src/shared/conf-parser.c