HOPKINS: Fixed warnings about switch statements using DIR_ constants
HOPKINS: Fixed shadowed variable warning