forked from RepoMirrors/bemenu
2f45c191bc
Without `extern`, the changed lines are not declarations, but "tentative definitions" (according to GCC man page, option `-fcommon`). When specified in a header file that is included in more than one `.c` file, these result in linking failure unless `-fcommon` is specified. GCC 10 changed the default from `-fcommon` to `-fno-common`, and as such the previous code no longer links properly. With `extern`, these lines are considered declarations, and the linking proceeds successfully. |
||
---|---|---|
.. | ||
3rdparty | ||
renderers | ||
bemenu.h | ||
CMakeLists.txt | ||
filter.c | ||
internal.h | ||
item.c | ||
library.c | ||
list.c | ||
menu.c | ||
util.c | ||
version.h.in |