Figure 1: Warnings that result from compiling Listing 1.
% xlc -q64 -qformat=all -qwarn64 test.c "test.c", line 12.30: 1506-745 (I) 64-bit portability: possible incorrect pointer through conversion of int type into pointer. "test.c", line 15.36: 1506-1191 (W) Invalid int format for long argument type in argument 2. "test.c", line 16.25: 1506-742 (I) 64-bit portability: possible loss of digits through conversion of long int type into int type. "test.c", line 17.32: 1506-742 (I) 64-bit portability: possible loss of digits through conversion of long int type into int type. "test.c", line 18.39: 1506-1191 (W) Invalid int format for long argument type in argument 2. "test.c", line 19.25: 1506-742 (I) 64-bit portability: possible loss of digits through conversion of long int type into int type.