diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-03-04 22:08:22 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2020-03-05 11:07:32 +0100 |
commit | 8a0eecfd5e4aaeddd025d64e32697692f532874d (patch) | |
tree | d46d7d272177d1d8a3cbd5b7d5d0e90f2821bba3 /xslt | |
parent | 9f8d593a150566c39548e0fdfe9c392ae939ff31 (diff) | |
download | subsurface-8a0eecfd5e4aaeddd025d64e32697692f532874d.tar.gz |
cleanup: make version_printed variable static and local to function
The version_printed variable is used to print version information
only once. It was a global variable, but never used outside of
its function. Therefore, move it into the function and make it
static. Since this is a plain old datatype (POD), it makes no
no difference whatsoever whether the static variable is in block
scope or not. Indeed, it is initialized in the data segment). Well,
we are in C mode and therefore everything has to be POD by definition.
I tested this on gcc and clang.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'xslt')
0 files changed, 0 insertions, 0 deletions