[PATCH] D52949: [Diagnostics] Implement -Wsizeof-pointer-div

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 5 14:51:31 PDT 2018


xbolva00 added inline comments.


================
Comment at: test/Sema/div-sizeof-ptr.c:9
+    
+    int e = sizeof(int *) / sizeof(int);
+    int f = sizeof(p) / sizeof(p);
----------------
GCC warns also in this case, but it is weird...


https://reviews.llvm.org/D52949





More information about the cfe-commits mailing list