Make init_spin_delay() C89 compliant #2.
authorAndres Freund <andres@anarazel.de>
Fri, 15 Apr 2016 02:26:13 +0000 (19:26 -0700)
committerAndres Freund <andres@anarazel.de>
Fri, 15 Apr 2016 02:26:13 +0000 (19:26 -0700)
commit4b74c6a40e7ac9dad7cdeb4cfd2d51ea60cfdbb5
treed01697a882a3da65f0c3fc6c832fd3aa5c535106
parent533cd2303aa6558721e76295fd1ffb05211764f9
Make init_spin_delay() C89 compliant #2.

My previous attempt at doing so, in 80abbeba23, was not sufficient. While that
fixed the problem for bufmgr.c and lwlock.c , s_lock.c still has non-constant
expressions in the struct initializer, because the file/line/function
information comes from the caller of s_lock().

Give up on using a macro, and use a static inline instead.

Discussion: 4369.1460435533@sss.pgh.pa.us
src/backend/storage/buffer/bufmgr.c
src/backend/storage/lmgr/lwlock.c
src/backend/storage/lmgr/s_lock.c
src/include/storage/s_lock.h