Fix warnings with gcc 4.2/4.9/5.0
- Remove unused variables; cast (void) where necessary to appease the compiler with unchecked returns.
- Remove unused functions.
- Put some variables under appropriate #define checks to
- Use generic method for determining whether or not SSE4.2 is enabled as the previous method would fail with !clang.
- Consolidate CTASSERTs and add __unused to appease gcc.
- Add more ellipses to appease warning from gcc about putting additional parentheses when using bitwise-or statements.
Tested with: clang 3.8.1, gcc, gcc 4.9, gcc 5.0
Sponsored by: EMC / Isilon Storage Division