mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
fe7df1ae75
Now that we support C string literals, by the rules of the language they have type `const char [N]` where `N` is a compile time constant. They also decay to `const char *`. This causes the `-Wpointer-sign` warning to trigger when recompiling decompiled C code, since we assign the string literals (with type `const char *` in C) to variables with other pointer types, some of which are e.g. `const uint8_t * but possibly also `const generic8_t *`. Given that we emit C code from assembly this warning is too strict to be always enforced. In fact, we had already disabled a similar warnings, such as `-Wincompatible-pointer-types`, and others. So we disable `-Wpointer-sign` as well in recompilation tests.