resolve some warnings about unused variables
merge from lp:openpetraorg