fix Issue 12619 - Invalid warning for unused return value of debug memcpy
fix Issue 12649 - "discards return value" warning will cause ICE on function pointer call
Merge pull request #3491 from 9rnsr/fix12619

[REG2.066a] Issue 12619 - Invalid warning for unused return value of debug memcpy