if your program is adversely affected by an unused pin then your code is incomplete and needs more debugging