error: array index 7 is past the end of the array (that has type 'char[7]') [-Werror,-Warray-bounds]
Affected version
- Other: 46.1 - compiling manually for OpenMandriva Cooker
Steps to reproduce
- Try compile builder 46.1 with Clang 18.1.3
- See build error
Current behavior
Compilation failed with error:
In file included from ../src/libide/terminal/ide-terminal-palette.c:27:
DEBUG util.py:463: ../src/libide/terminal/ide-terminal-palettes.h:51:33: error: array index 7 is past the end of the array (that has type 'char[7]') [-Werror,-Warray-bounds]
DEBUG util.py:463: 51 | .foreground = GDK_RGBA ("1e1e1e"),
DEBUG util.py:463: | ~~~~~~~~~~^~~~~~~~~
DEBUG util.py:463: ../src/libide/terminal/ide-terminal-palettes.h:36:98: note: expanded from macro 'GDK_RGBA'
DEBUG util.py:463: 36 | ((sizeof(str) % 4 == 1) ? ((_GDK_RGBA_SELECT_COLOR(str, 3, 6) << 4) | _GDK_RGBA_SELECT_COLOR(str, 3, 7)) : 0xFF) / 255. })
Full build log: https://file-store.openmandriva.org/api/v1/file_stores/dd780ee0d9df70bb40955b96560764d38ae57fe9.log?show=true
Expected behavior
All compile fine.