Fix random warnings in routes compilation
Merge pull request #3073 from gmethvin/routes_priority

Fix random warnings in routes compilation