Message340152
gcc warns with -pedantic:
ptr.c: In function ‘main’:
ptr.c:5:13: warning: format ‘%p’ expects argument of type ‘void *’, but argument 2 has type ‘int *’ [-Wformat=]
printf ("%p", &i);
It is pedantic indeed, I wonder if machines with different pointer sizes still exist. |
|
Date |
User |
Action |
Args |
2019-04-13 11:17:25 | skrah | set | recipients:
+ skrah, mark.dickinson, serhiy.storchaka, ZackerySpytz |
2019-04-13 11:17:25 | skrah | set | messageid: <1555154245.55.0.478893539391.issue36594@roundup.psfhosted.org> |
2019-04-13 11:17:25 | skrah | link | issue36594 messages |
2019-04-13 11:17:25 | skrah | create | |
|