commit 5e846a0a406462eed35c2d5875eabe3f9ec6aa7d from: Benjamin Stürz date: Sun Dec 17 18:07:31 2023 UTC Fix compiler warnings commit - 9f68765ee52324f2ec07f7866b5b66b572b72995 commit + 5e846a0a406462eed35c2d5875eabe3f9ec6aa7d blob - aad4f75d1ce5b3e4f053f1725a921501054275b6 blob + 84996db76835038bc2644c021cc6afa33059e5d2 --- config.mk +++ config.mk @@ -5,5 +5,5 @@ SCRIPTDIR = ${PREFIX}/libexec/desktop VERSION = "benni-0.1" CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DPREFIX=\"${PREFIX}\" -DVERSION=\"${VERSION}\" -CFLAGS = -std=c99 -pedantic -Wall -Wunused-parameter -O2 ${CPPFLAGS} +CFLAGS = -std=c99 -pedantic -Wall -Wextra -Wno-sign-compare -O2 ${CPPFLAGS} blob - 53636f102ed83dd64c906500322800ae5186f8cb blob + c3d8e4413ea27ba4987e016a7cdcd04407d817bf --- pinentry-dmenu/pinentry/pinentry.c +++ pinentry-dmenu/pinentry/pinentry.c @@ -497,7 +497,11 @@ pinentry_parse_opts (int argc, char *argv[]) ARGPARSE_s_s('c', "colors", "|STRING|Set custom colors for ncurses"), ARGPARSE_end() }; - ARGPARSE_ARGS pargs = { &argc, &argv, 0 }; + ARGPARSE_ARGS pargs; + memset (&pargs, 0, sizeof (pargs)); + pargs.argc = &argc; + pargs.argv = &argv; + pargs.flags = 0; set_strusage (my_strusage); @@ -1216,7 +1220,7 @@ register_commands (assuan_context_t ctx) { "SETTITLE", cmd_settitle }, { "SETTIMEOUT", cmd_settimeout }, { "CLEARPASSPHRASE", cmd_clear_passphrase }, - { NULL } + { NULL, NULL } }; int i, j; gpg_error_t rc; blob - fd857807174bf0b90257bb0afd0267793042d961 blob + b9bdd778ddf536d1f6e6f34f0a7e65918bfc71b1 --- st/config.h +++ st/config.h @@ -179,10 +179,10 @@ static uint forcemousemod = ShiftMask; */ const unsigned int mousescrollincrement = 5; static MouseShortcut mshortcuts[] = { - /* mask button function argument release */ - { XK_ANY_MOD, Button4, kscrollup, {.i = mousescrollincrement} }, - { XK_ANY_MOD, Button5, kscrolldown, {.i = mousescrollincrement} }, - { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, + /* mask button function argument release */ + { XK_ANY_MOD, Button4, kscrollup, {.i = mousescrollincrement}, 0 }, + { XK_ANY_MOD, Button5, kscrolldown, {.i = mousescrollincrement}, 0 }, + { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, //{ ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, //{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, //{ ShiftMask, Button5, ttysend, {.s = "\033[6;2~"} }, blob - 8272aee3a914f1ea32402dce7cf79fe6135f63f3 blob + dee3b6e64c332a6a755735f405cc96b6ee75c8d4 --- st/st.c +++ st/st.c @@ -1043,10 +1043,15 @@ treset(void) term.charset = 0; for (i = 0; i < 2; i++) { - term.screen[i].sc = (TCursor){{ - .fg = defaultfg, - .bg = defaultbg - }}; + term.screen[i].sc = (TCursor){ + .attr = { + .fg = defaultfg, + .bg = defaultbg + }, + .x = 0, + .y = 0, + .state = '\0', + }; term.screen[i].cur = 0; term.screen[i].off = 0; for (j = 0; j < term.row; ++j) {