Pamgen: fix compiler warnigns and bugs
Created by: ibaned
The token checks I believe are actual bugs which were spotted by newer compiler warnings. Also two unused variables are removed.
not sure who to mention besides @jgfouca
Created by: ibaned
The token checks I believe are actual bugs which were spotted by newer compiler warnings. Also two unused variables are removed.
not sure who to mention besides @jgfouca