Fix some warnings, from Thomas Adam.

pull/1674/head
nicm 2019-04-05 20:32:31 +00:00
parent f4aefb738e
commit 1b5a8a0f09
2 changed files with 1 additions and 3 deletions

View File

@ -166,13 +166,11 @@ cmd_show_options_all(struct cmd *self, struct cmdq_item *item,
struct options *oo)
{
struct options_entry *o;
const struct options_table_entry *oe;
struct options_array_item *a;
u_int idx;
o = options_first(oo);
while (o != NULL) {
oe = options_table_entry(o);
if (!options_isarray(o))
cmd_show_options_print(self, item, o, -1);
else {

View File

@ -172,7 +172,7 @@ style_tostring(struct style *sy)
{
struct grid_cell *gc = &sy->gc;
int off = 0;
const char *comma = "", *tmp;
const char *comma = "", *tmp = "";
static char s[256];
char b[16];