]> git.sur5r.net Git - i3/i3/blobdiff - src/main.c
Fix _i3_version debugging symbol (#2492)
[i3/i3] / src / main.c
index 9373445aa15f4225d5fa5b280d28ea0d96514677..f94a8941b3c0c602ef861703731d017995a7f120 100644 (file)
@@ -189,7 +189,7 @@ static void handle_signal(int sig, siginfo_t *info, void *data) {
 int main(int argc, char *argv[]) {
     /* Keep a symbol pointing to the I3_VERSION string constant so that we have
      * it in gdb backtraces. */
-    const char *_i3_version __attribute__((unused)) = i3_version;
+    static const char *_i3_version __attribute__((used)) = I3_VERSION;
     char *override_configpath = NULL;
     bool autostart = true;
     char *layout_path = NULL;