[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issue 5309, take 2: find_global_context () and find_score_context ()
Re: Issue 5309, take 2: find_global_context () and find_score_context () (issue 561290043 by address@hidden)
Fri, 03 Jan 2020 13:21:32 -0800
File lily/context.cc (right):
lily/context.cc:116: if (Context *score = gthis->get_score_context ())
On 2020/01/03 16:18:09, lemzwerg wrote:
Not sure whether compilers warn about the `if (... = ...)` construct.
the `Context *` prevents it. Otherwise I suggest another level of
They don't. lily/parser.yy is full of it (and a number of other files
as well) and I have no idea where you want to place "another level of
parentheses". It certainly is not allowed around the declaration.