Handling warnings generated by PVS Studio