powerlevel10k icon indicating copy to clipboard operation
powerlevel10k copied to clipboard

Build failure with GCC 14.2

Open zeule opened this issue 4 months ago • 3 comments

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?

zeule avatar Sep 29 '24 15:09 zeule