Fix warning complaining about missing resource with resource list is empty.
Fix unused variable warnings
Merge branch 'fix-warnings'

* fix-warnings:
  Fix unused variable warnings
  Fix warning complaining about missing resource with resource list is empty.