Skip to content
Snippets Groups Projects
Commit d9e29d13 authored by Andrew Cooks's avatar Andrew Cooks
Browse files

add cleanup step to remove redundant return;

void functions do not need to return; at the end. The empty return was
left over after removing the RET() macro in
f7344c42 and
3e916da0
parent 66ed7f24
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,14 @@ sed -i 's|\(#define DBG1.*\)||g' tn40.h
(! grep -Iq DBG1 *.{c,h}) || (echo 'unexpected DBG1 macro remaining.' && false)
# remove redundant return at end of void functions
# look for one level of tab indentation to determine function scope, instead of
# early returns from block scope. It's ugly, but semantically-important
# whitespace works for python and Lindent ensures that the indentation is
# consistent here.
sed -i 's|^\treturn;.*||g' *.c
# Insert new cleanup steps above this comment.
# Keep Lindent as the last step.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment