Comment 3 for bug 1580348

Revision history for this message
Thorsten Glaser (mirabilos) wrote : Re: [Bug 1580348] [NEW] mksh 52c bi_errorf(Tbadsubst) format string is not a string literal

Chih-Hung Hsieh dixit:

>Lastest mksh/histrap.c (R52c) has a warning from clang/llvm compiler.
>It is a tricky use of pointer to the middle of string literals,
>which is recognized by gcc but not clang/llvm.

Arrgh, stupid compilers, trying to be too smart and utterly failing.
I’ve recently had “fun” with newer GCC versions and those string
pooling macros, TWICE. I already decided to remove them, but for
now I’ve added GCC workarounds… turns out Clang is just as bad.

Yes, I’ll tackle this for the next release, thank you for the report.

bye,
//mirabilos
--
22:20⎜<asarch> The crazy that persists in his craziness becomes a master
22:21⎜<asarch> And the distance between the craziness and geniality is
only measured by the success 18:35⎜<asarch> "Psychotics are consistently
inconsistent. The essence of sanity is to be inconsistently inconsistent