I am not sure what you mean, Pavel. Not using default: is better in general. We 
should use it only in cases where the number of enum members is too large(for 
example in dispatch+)).

If somebody adds an enum value later, we'll get a warning about it.

JMarc 

Le 29 octobre 2024 16:13:25 GMT+01:00, Pavel Sanda <sa...@lyx.org> a écrit :
>On Tue, Oct 29, 2024 at 01:26:18PM +0100, Thibaut Cuvelier wrote:
>> > 
>I think it is safer to accept the warning than losing the default in case 
>someone
>adds something into the enum later or even gives parameter out of enum range.
>
>There might be some hint for compiler to ignore this warning.
>
>Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to