> Actually this was recommended by Greg in one of our thread here. > https://lore.kernel.org/all/20200318125003.GA2727094@xxxxxxxxx/ It is in the C standard, so any compiler not adhering to it has a bug. It is especially not important here because we use the enums only locally and do not export. > That's why we started to initialize all values in enums in our code. > It shouldn't be really any problem to do so. It may be more readable if you have dozens of them, but it also adds the possibility of copy&paste errors. I think I'll take V3 here.
Attachment:
signature.asc
Description: PGP signature