summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruint23 <[email protected]>2025-05-16 20:27:16 +0100
committeruint23 <[email protected]>2025-05-16 20:27:16 +0100
commit96a87bfadd7bee36c9a4dd7b1d0a3c9ce49714df (patch)
treee9dca578e56e9fa6f337be058c1d6271b3727cf5
parent2f13c69e085564acaee5a3d3ced7341f71488595 (diff)
fix return value for parse_col && remove debug symbol from make instructions
-rw-r--r--Makefile2
-rw-r--r--src/sxwm.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2b2e550..7c69201 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
CC ?= gcc
-CFLAGS ?= -std=c99 -Wall -Wextra -O3 -Isrc -g
+CFLAGS ?= -std=c99 -Wall -Wextra -O3 -Isrc
LDFLAGS ?= -lX11 -lXinerama -lXcursor
PREFIX ?= /usr/local
diff --git a/src/sxwm.c b/src/sxwm.c
index 6fce79d..d2ade15 100644
--- a/src/sxwm.c
+++ b/src/sxwm.c
@@ -1048,8 +1048,8 @@ long parse_col(const char *hex)
return WhitePixel(dpy, DefaultScreen(dpy));
}
- /* return col.pixel; */
- return col.pixel |= 0xff << 24;
+ /* return col.pixel |= 0xff << 24; */
+ return col.pixel;
}
void quit(void)