mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
shortcut_to_name should not be defined as static in a header file. Put
it in group.c where it it used most, and add an extern definition for the other users of it. Found by gcc -Wall. ok okan@
This commit is contained in:
parent
dcfae161a2
commit
d1050afb60
6
calmwm.h
6
calmwm.h
@ -140,11 +140,7 @@ struct client_ctx {
|
|||||||
|
|
||||||
TAILQ_HEAD(client_ctx_q, client_ctx);
|
TAILQ_HEAD(client_ctx_q, client_ctx);
|
||||||
|
|
||||||
static char *shortcut_to_name[] = {
|
extern const char *shortcut_to_name[];
|
||||||
"nogroup", "one", "two", "three",
|
|
||||||
"four", "five", "six", "seven",
|
|
||||||
"eight", "nine"
|
|
||||||
};
|
|
||||||
|
|
||||||
struct group_ctx {
|
struct group_ctx {
|
||||||
TAILQ_ENTRY(group_ctx) entry;
|
TAILQ_ENTRY(group_ctx) entry;
|
||||||
|
5
group.c
5
group.c
@ -29,6 +29,11 @@ struct group_ctx Groups[CALMWM_NGROUPS];
|
|||||||
int Grouphideall = 0;
|
int Grouphideall = 0;
|
||||||
struct group_ctx_q Groupq;
|
struct group_ctx_q Groupq;
|
||||||
|
|
||||||
|
const char *shortcut_to_name[] = {
|
||||||
|
"nogroup", "one", "two", "three", "four", "five", "six",
|
||||||
|
"seven", "eight", "nine"
|
||||||
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_group_add(struct group_ctx *gc, struct client_ctx *cc)
|
_group_add(struct group_ctx *gc, struct client_ctx *cc)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user