Assigning a regular pointer ptr2 to a pointer-to-const ptr1 like shown in the code below does not produce any warning.
#include