Skip to content

Conversation

@jessp01
Copy link

@jessp01 jessp01 commented Feb 9, 2025

  • In C, you can't declare variables directly under case labels - declaration needs to be inside a block. GCC forgives it but Clang 17 and above does not. I've also corrected the indentation in some places.
  • Need to include <sys/types.h> to use uint type
  • Fix warning: variable 'total_number_of_files' set but not used

These changes allow devilspie2 to build with Clang 17 and 18 (see #41 and this build log).

- In C, you can't declare variables directly under case labels - declaration needs to be inside a block.
GCC forgives it but Clang 17 and above does not. I've also corrected the
indentation

- Need to include <sys/types.h> to use uint type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant