Commit 3fb6b6be authored by Rusty Russell's avatar Rusty Russell

opt: fix gcc -O3 warnings.

parent 09fde153
......@@ -20,7 +20,7 @@ static void reset_options(void)
/* Test iterators. */
int main(int argc, char *argv[])
{
unsigned j, i, len;
unsigned j, i, len = 0;
const char *p;
plan_tests(37 * 2);
......
......@@ -35,7 +35,9 @@ static void save_err_output(const char *fmt, ...)
char *p;
va_start(ap, fmt);
vasprintf(&p, fmt, ap);
/* Check return, for fascist gcc */
if (vasprintf(&p, fmt, ap) == -1)
p = NULL;
va_end(ap);
if (err_output) {
......
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