Branch: Tag:

2015-11-15

2015-11-15 20:00:47 by Martin Nilsson <nilsson@fastmail.com>

Fix label warnings.

9293:   test_compile_error([[foo: continue foo;]])   test_compile_error([[int a; foo: if (a++) a++; else foo: a++;]])   test_compile_error([[int a; foo: foo: if (a++) a++; else a++;]]) + ignore_warning("Label foo not used.", [[    test_compile([[int a; foo: if (a++) a++; foo: a++;]]) -  + ]])   test_compile_error([[int a; do if (a++) break foo; while (0);]])   test_compile([[int a; do foo: if (a++) break foo; while (0);]])   test_compile([[int a; foo: do if (a++) break foo; while (0);]])   test_compile_error([[int a; do foo: if (a++) continue foo; while (0);]])   test_compile([[int a; foo: do if (a++) continue foo; while (0);]]) -  + ignore_warning("Label foo not used.", [[   test_any([[    int i;    for (i = 1; i <= 4; i++)
9313:    }    return i;   ]], 0) + ]])   test_any([[    int i;    for (i = 1; i <= 4; i++)
9382:    }    return ({a, b});   ]], ({3, 1})) + ignore_warning("Label foo not used.", [[   test_any_equal([[    int a, b;   foo:
9397:    }    return ({a, b})   ]], ({4, 8})); + ]])   test_any([[   foo:    if (stringp (catch {int q=1; break foo;}) + 1) return 1;