]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/log.c
basic/macros: rename noreturn into _noreturn_ (#8456)
authorFranck Bui <fbui@suse.com>
Thu, 15 Mar 2018 05:23:46 +0000 (06:23 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 15 Mar 2018 05:23:46 +0000 (14:23 +0900)
commit848e863acc51ecfb0f3955c498874588201d9130
treefedd8948ff6e083243b591df36d723340a457096
parent3b71cf46bee9364323c6bfb7018210d8f35f5820
basic/macros: rename noreturn into _noreturn_ (#8456)

"noreturn" is reserved and can be used in other header files we include:

  [   16s] In file included from /usr/include/gcrypt.h:30:0,
  [   16s]                  from ../src/journal/journal-file.h:26,
  [   16s]                  from ../src/journal/journal-vacuum.c:31:
  [   16s] /usr/include/gpg-error.h:1544:46: error: expected ‘,’ or ‘;’ before ‘)’ token
  [   16s]  void gpgrt_log_bug (const char *fmt, ...)    GPGRT_ATTR_NR_PRINTF(1,2);

Here we include grcrypt.h (which in turns include gpg-error.h) *after* we
"noreturn" was defined in macro.h.
src/basic/log.c
src/basic/log.h
src/basic/macro.h
src/basic/process-util.c
src/basic/process-util.h
src/core/main.c
src/journal/test-journal-interleaving.c
src/shared/pager.c
src/udev/collect/collect.c