MitalAshok added inline comments.
================ Comment at: clang/test/Sema/format-pointer.c:39 + printf("%p", np); + scanf("%p", &np); // expected-warning {{format specifies type 'void **' but the argument has type 'nullptr_t *'}} + scanf("%p", &npp); // pedantic-warning {{format specifies type 'void **' but the argument has type 'nullptr_t **'}} ---------------- Should this be a pedantic warning? If this reads a non-null pointer, the bit pattern of `np` will be messed up but `np` will still read as a nullptr. If it reads a null pointer, it should be fine. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D156054/new/ https://reviews.llvm.org/D156054 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits