Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling warn cleanup #416

Merged
merged 2 commits into from
Sep 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ bin/
build/
# Sometimes build leaves this
*_time
*.release_time
*.debug_time


# Clang leftovers
Expand Down
3 changes: 3 additions & 0 deletions src/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,9 @@ clientmessage(XCBGenericEvent *event)
const u16 __NET_WM_MOVE_WINDOW_APPLICATION_FLAG = 1 << 12;
const u16 __NET_WM_MOVE_WINDOW_PAGER_FLAG = 1 << 13;

(void)__NET_WM_MOVE_WINDOW_APPLICATION_FLAG;
(void)__NET_WM_MOVE_WINDOW_PAGER_FLAG;

const enum XCBBitGravity gravity = l0 & GRAVITY_BITS;

const u32 flags = l0 & FLAG_BITS;
Expand Down
2 changes: 1 addition & 1 deletion src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ SCParserNewVar(

if(READONLY_SECTION)
{
item->name = VAR_NAME;
item->name = (char *)VAR_NAME;
item->allocated = 0;
}
else
Expand Down
1 change: 1 addition & 0 deletions src/toggle.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ UserStats(const Arg *arg)
if(c)
{
argb.argb = c->bcol;
(void)argb;
Debug("(x: %d, y: %d, w: %u, h: %u)", c->x, c->y, c->w, c->h);
Debug("(ox: %d, oy: %d, ow: %u, oh: %u)", c->oldx, c->oldy, c->oldw, c->oldh);
Debug("NETNAME: %s", c->netwmname);
Expand Down