Re: [PATCH 2/2] parse-options: use and require int pointer for OPT_CMDMODE
- From
Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
- Date
- Sep 10, 2023, 10:18 UTC
- Message-ID
- <ZP2X9roiaeEjzf24@ugly>
- In-Reply-To
- <e6d8a291-03de-cfd3-3813-747fc2cad145@web.de>
On Sat, Sep 09, 2023 at 11:14:20PM +0200, René Scharfe wrote:
>Convert the offending OPT_CMDMODE users and use the typed value_int >point in the macro's definition to enforce that type for future ones. >
that defeats -Wswitch[-enum], though.
the pedantically correct solution would be using setter callbacks.
regards