work around some compiler and analyzer warnings.