|
Description
|
DR support sources trigger a large number of warnings when built with gcc.
The most common issues are:
1. Casts between pointers and integers of different sizes. The standards
do not specify whether such casts cause sign extension; gcc sign-extends
and warns while Studio does neither. The safe way to keep the current
behaviour is to cast to uintptr_t first.
2. Incorrect format strings, mainly missing or extra 'l' qualifiers or
confusion between %p and %x or %lx specifiers. In some cases, the format
strings are correct and there are unnecessary casts of the arguments.
See suggested fix for more detail as to which files are affected.
|