COMP: Remove compiler warnings for JPEG

Many unused parameter warnings were suppressed
in this patch set.

A macro to wrap the unused variables was created
based on community provided suggestion.