Fixed most const warnings and added pragmas to ignore false warnings

Im using the OpenSC project to do some tests with smartcards and got annoyed by continuous warnings about const casts:

The OpenSC project master creates quite some warning concerning due to cons u8 * conversions to u8 *. These are correct but should be properly cast. There are some unused variables which also cause warnings. I simply got tired of them and wanted to avoid most (if not all) warnings as possible. Some are invalid and I added pragma statements to ignore the warnings. 
True, but I had no intention of changing the original code. Accepting it with warning would have had a reason I assume.

This is valid for this specific case but in many versions of the apdu.data assignment there are const u8* operants in the function which cannot be changed easily. Some card code has all of them casted, some none.