On Fri, 06 Jul 2012 03:28:35 +0200 Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net wrote:
if (prog == PROGRAMMER_INVALID)
prog = default_programmer;
if (default_programmer == PROGRAMMER_INVALID) {
/* More than one programmer compiled in, there is no default choice. */
msg_perr("Please select a programmer with --programmer . Valid choices are:\n");
list_programmers_linebreak(0, 80, 0);
ret = 1;
goto out;
} else {
prog = default_programmer;
}
please add {} around the inner if, else gcc complains.