]> git.sur5r.net Git - i3/i3/commitdiff
bindings.h: mark DEFAULT_BINDING_MODE as external
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 8 Jan 2016 18:56:32 +0000 (19:56 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 8 Jan 2016 18:56:32 +0000 (19:56 +0100)
This prevents the following linker warning (only when compiling with
-fsanitize=address):

/usr/bin/ld: Warning: size of symbol `DEFAULT_BINDING_MODE' changed
from 8 in src/resize.o to 64 in src/bindings.o

include/bindings.h

index da81de248df085ba63509b9bb5eb978e64d8fef3..9b14e98822f34e6751fc7a824c65e77e553c07ad 100644 (file)
@@ -15,7 +15,7 @@ extern pid_t command_error_nagbar_pid;
  * The name of the default mode.
  *
  */
-const char *DEFAULT_BINDING_MODE;
+extern const char *DEFAULT_BINDING_MODE;
 
 /**
  * Adds a binding from config parameters given as strings and returns a