removed compiler warnings in port driver
merged in master branch