Commit 8f74e188 authored by gi1242's avatar gi1242

Fix compile warnings.

parent 2de3286c
......@@ -2944,7 +2944,10 @@ rxvt_draw_string_x11 (rxvt_t* r, Window win, GC gc, Region refreshRegion,
draw_string == XDrawString16)
xtextextents = XTextExtents16;
else
assert(0); /* Shouldn't happen */
{
xtextextents = NULL; /* Suppress gcc warning */
assert(0); /* Shouldn't happen */
}
xtextextents( font, str, len,
&unused_dir, &ascent, &descent, &charstruct);
......
......@@ -758,7 +758,7 @@ rxvt_usage(int type)
fprintf(stdout, " %s%s %-*s%s%s\n",
(optList_isBool(i) ? "-/+" : "-"), optList[i].opt,
(INDENT - STRLEN(optList[i].opt)
(INDENT - (int) STRLEN(optList[i].opt)
+ (optList_isBool(i) ? 0 : 2)),
(optList[i].arg ? optList[i].arg : ""),
(optList_isBool(i) ? "turn on/off " : ""),
......@@ -790,7 +790,6 @@ rxvt_usage(int type)
if (NOT_NULL(optList[i].kw))
fprintf(stdout, " %s: %*s%s\n",
optList[i].kw,
(INDENT - STRLEN(optList[i].kw)), "", /* XXX */
(optList_isBool(i) ? "boolean" : optList[i].arg));
#endif
fprintf(stdout, "\n -help to list options");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment