Initialize PercentEroded in else branch.
Set CMAKE_C_FLAGS for max warnings.