MAINT: fix a few harmless compiler warnings
Merge pull request #4759 from juliantaylor/warning-fix

MAINT: fix a few harmless compiler warnings