]> git.ipfire.org Git - thirdparty/libbsd.git/commit
Fix the __progname check to avoid the optimizer discarding the symbol
authorGuillem Jover <guillem@hadrons.org>
Sun, 28 Aug 2016 15:13:20 +0000 (17:13 +0200)
committerGuillem Jover <guillem@hadrons.org>
Mon, 5 Jun 2017 03:52:07 +0000 (05:52 +0200)
commit368af99f554ca1c7211faf9eedfffcf45e5e76bb
tree5d078d4907911b09a53b509d0714d055f373996c
parent337e62027503aa6e09ca7adbe94cd7077f3241c3
Fix the __progname check to avoid the optimizer discarding the symbol

Because we were assigning to another unused variable, when building the
check with optimizations enabled, which is the default when using gcc
as the compiler, the variable was being discarded. Instead pass it to
printf() so that it cannot do so.
configure.ac