https://llvm.org/bugs/show_bug.cgi?id=24263

            Bug ID: 24263
           Summary: -Wfree-nonheap-object not implemented
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

$: cat t.c
#include <stdlib.h>
int main() {
  char a[100];
  free(a);
  return 0;
}
$: gcc-trunk -c t.c
t.c: In function ‘main’:
t.c:4:3: warning: attempt to free a non-heap object ‘a’ [-Wfree-nonheap-object]
   free(a);
   ^
$: clang-trunk -Weverything -c t.c
$: 
$:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to