Skip to content

Fix build issues#42

Closed
jessp01 wants to merge 2 commits intodsalt:masterfrom
jessp01:fix-build-errors1
Closed

Fix build issues#42
jessp01 wants to merge 2 commits intodsalt:masterfrom
jessp01:fix-build-errors1

Conversation

@jessp01
Copy link
Copy Markdown

@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
@dsalt dsalt added the wontfix This will not be worked on label Apr 12, 2026
@dsalt
Copy link
Copy Markdown
Owner

dsalt commented Apr 12, 2026

One commit merged via another PR; one not needed.

@dsalt dsalt closed this Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants