]> git.sur5r.net Git - i3/i3/commit
Fix _i3_version debugging symbol (#2492)
authorMichael Stapelberg <stapelberg@users.noreply.github.com>
Wed, 5 Oct 2016 16:46:33 +0000 (09:46 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Oct 2016 16:46:33 +0000 (09:46 -0700)
commit3cba06f7b970d34b540c65e10c4cef8a8ced7e57
treef7ddabd030264e867d984d019c06d36582c8aa60
parent3a359a024343f73cd39068c5d3d5ed5afd4883b0
Fix _i3_version debugging symbol (#2492)

The idea was to ensure the symbol would always be present. For that, we need
__attribute__((used)), not __attribute__((unused)). Further, ensure the
variable has static storage, as the used attribute only applies to variables
with static storage. See also http://stackoverflow.com/a/29545417/712014
src/main.c