powerlevel10k
powerlevel10k copied to clipboard
Build failure with GCC 14.2
src/index.cc: In function ‘std::vector<const char*> gitstatus::{anonymous}::ScanDirs(git_index*, int, gitstatus::IndexDir* const*, gitstatus::IndexDir* const*, const gitstatus::RepoCaps&, const gitstatus::ScanOpts&)’:
src/index.cc:295:21: error: array subscript -1 is outside array bounds of ‘char []’ [-Werror=array-bounds=]
295 | if (entry[-1] == DT_DIR) entry[basename.len++] = '/';
| ~~~~~~~~^
cc1plus: all warnings being treated as errors
Another question is why -Werror in the released tarballs?