fixing GPContextErrFunc & GPContextMessage
remove unused variable (dead store)