]> git.ipfire.org Git - thirdparty/git.git/commit - trace.c
trace.c: do not mark getnanotime() as "inline"
authorBen Walton <bdwalton@gmail.com>
Sun, 28 Sep 2014 07:50:26 +0000 (08:50 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Sep 2014 23:13:58 +0000 (16:13 -0700)
commit6433d569753e8d33d3f7beca16a65f2fc481aade
tree81e530c1c765bee41e6418a8215a4c1b2eaedb41
parent62b553cdd6cd41d60b3e0c6fe4a85a951712df97
trace.c: do not mark getnanotime() as "inline"

Oracle Studio compilers don't allow for static variables in
functions that are defined to be inline. GNU C does permit this.

Let's reference the C99 standard though, which doesn't allow for
inline functions to contain modifiable static variables.

Signed-off-by: Ben Walton <bdwalton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
trace.c