When I launch the value plugin of frama-c, I get many times the same warning :
/Users/philippeantoine/.opam/4.02.3/bin/frama-c -val myprog.c
In file included from /Users/philippeantoine/.opam/4.02.3/share/frama-c/libc/stdint.h:27:
/Users/philippeantoine/.opam/4.02.3/share/frama-c/libc/features.h:63:9: warning: '__nonnull' macro redefined [-Wmacro-redefined]
#define __nonnull(args...)
^
<built-in>:286:9: note: previous definition is here
#define __nonnull _Nonnull
^
1 warning generated.
/var/folders/rj/vl86bl2n6cgdjg7m7tszcvm40000gn/T/ppannot48d4bd.c:543:9: warning: '__nonnull' macro redefined [-Wmacro-redefined]
#define __nonnull(args...)
^
/var/folders/rj/vl86bl2n6cgdjg7m7tszcvm40000gn/T/ppannot48d4bd.c:286:9: note: previous definition is here
#define __nonnull _Nonnull
^
1 warning generated.
Has anyone experience these before ? What is the best way to avoid these and see the meaningful warnings ?
I get this with the simple code :
#include <stdlib.h>
int main (){
char * test = malloc(10);
test[0] = 'a';
}