]> Savannah Git Hosting - gnulib.git/commit
snippet/_Noreturn: work around Clang _Noreturn bug
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 Jan 2023 03:39:03 +0000 (19:39 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 Jan 2023 09:15:52 +0000 (01:15 -0800)
commit58df1197775b7a629c588ed3172c0ed0f3f0db4d
tree0ef1a68a7df0d897cff860ba853a630415426681
parent3d9249fe2ce5226792b218ae2a1154bbc2108c8f
snippet/_Noreturn: work around Clang _Noreturn bug

This is a bigger-hammer workaround for the clang _Noreturn issue
fix for dfa.c on 2023-01-01.  Unfortunately, it causes 270
-Wreturn-type and -Wsometimes-uninitialized warnings when building
bleeding-edge GNU Emacs from Git on Fedora 37 with plain
‘./configure && make’.  So the workaround is enabled only if you
compile with -D_GL_WORK_AROUND_LLVM_BUG_59792.
* lib/_Noreturn.h (_Noreturn):
* m4/gnulib-common.m4 (gl_COMMON_BODY):
#define _Noreturn to be empty if it is Clang 15 or earlier,
and if _GL_WORK_AROUND_LLVM_BUG_59792 is defined.
ChangeLog
lib/_Noreturn.h
m4/gnulib-common.m4