t8code icon indicating copy to clipboard operation
t8code copied to clipboard

t8code does not compile with `-Wextra` and/or `-Wpedantic`

Open jmark opened this issue 1 year ago • 3 comments

Would be nice to fully to support these flags, too.

jmark avatar Jul 17 '24 15:07 jmark

Those are the additional warnings that arise:

-Werror=unused-parameter, fixed by introducing [[maybe_unused]] https://en.cppreference.com/w/cpp/language/attributes/maybe_unused

-Werror=type-limits, fixed by removing the unnecessary unsigned int >= 0 assertion

-Werror=implicit-fallthrough=, fixed by not allowing switch statements to fall through

-Werror=ignored-qualifiers, fixed by removing const return qualifier

lukasdreyer avatar Jul 18 '24 07:07 lukasdreyer

#1158 fixes parts of the fallthroughs.

holke avatar Jul 22 '24 13:07 holke

#1118 is related

holke avatar Jul 22 '24 13:07 holke

#1414 should solve this

dutkalex avatar Feb 19 '25 19:02 dutkalex

@sandro-elsweijer @lukasdreyer Do you agree that this issue is fixed and can be closed? I checked it locally and heard from others that it works for them too...

spenke91 avatar Mar 28 '25 11:03 spenke91

@spenke91 yes we can close this :)

sandro-elsweijer avatar Mar 28 '25 11:03 sandro-elsweijer