Clean up a warning & set Werror for Pamgen
Created by: ZUUL42
This removes a couple of lines that are unused variables and sets Werror for Pamgen.
Motivation and Context
- My commit messages mention the appropriate GitHub issue numbers.
- My code follows the code style of the affected package(s).
- My change requires a change to the documentation.
- I have read the code contribution guidelines for this project.
- All new and existing tests passed.
- No new compiler warnings were introduced.
- These changes break backwards compatibility.