Skip to content

Clang warning cleanup

Alan Coopersmith requested to merge alanc/xinit:clang into master

Clean up 14 of 17 warnings from clang 13:

  • Mark global variables as static since there's only one source file
  • Clear -Wunused-parameter warnings from clang
  • Use ptrdiff_t to store results of pointer subtraction
  • Use asprintf() if available

The remaining 3 are -Wunreachable-code-return & -Wunreachable-code-break warnings.

Merge request reports

Loading