Get rid of remaining compiler warnings on OpenBSD

pull/1/head
matthieu 2022-06-25 21:12:41 +00:00
parent 71430a97b5
commit 7d1686e90e
2 changed files with 4 additions and 3 deletions

View File

@ -831,7 +831,9 @@ RenderTextBounds(ClockWidget w, char *str, int off, int len,
else
#endif
{
fallback:
#if defined(HAVE_ICONV) && defined(HAVE_NL_LANGINFO)
fallback:
#endif
XftTextExtents8(XtDisplay(w), w->clock.face, (FcChar8 *) str,
off, &head);
XftTextExtents8(XtDisplay(w), w->clock.face, (FcChar8 *) str + off,

View File

@ -231,10 +231,9 @@ main(int argc, char *argv[])
{
/* force reading of XErrorDB into memory to avoid adding "rpath" to
pledge below */
int r;
char buf[1];
r = XGetErrorDatabaseText(XtDisplay(toplevel), "XProtoError", "0", "", buf, 1);
(void)XGetErrorDatabaseText(XtDisplay(toplevel), "XProtoError", "0", "", buf, 1);
}
if (pledge("stdio", NULL) == -1)
err(1, "pledge");