Skip to content

Fix compiler warnings

Axel Loewe requested to merge 174-sprintf-deprecation into master

On clang 15, openCARP now builds without warnings using the default CMake build workflow

Most changes:

  • sprintf() -> snprintf()
  • add parentheses for assignment conditions (while (a=b) -> while((a=b)))
  • add default statements for non-covered switch cases

Closes #174 (closed)

Merge request reports