================
@@ -30,7 +30,7 @@ extern time_t mktime(struct tm *timeptr);
 
 void uninit_mbrlen(const char *mbs) {
   mbstate_t state;
-  mbrlen(mbs, 1, &state); // expected-warning{{3rd function call argument 
points to an uninitialized value}}
+  mbrlen(mbs, 1, &state); // expected-warning{{3rd function call argument 
points to an uninitialized value; Function 'mbrlen' expects memory pointed to 
by this argument to be initialized}}
----------------
NagyDonat wrote:

> My goal was to surface this, and to make you think about it. 

Goal achieved :) and I agree that it's good that we thought about these.

https://github.com/llvm/llvm-project/pull/211038
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to