Fixing warnings in vtkHardwareSelector

Change-Id: I609f6ea196facc66b91e121f13a1b604521e5d37
Merge topic 'hardwareselector_warnings' into master

030f2931 Fixing warnings in vtkHardwareSelector