scan-build throws error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

scan-build throws error

David Chisnall via cfe-dev
I used clang(v-8.0) scan-build to build a real project, which contains c/cpp/oc code files. And an error occurs when build cpp files. Here is the error message:

struct person{
    char name;
    char tel;
person p ={..} = ... = ...

  error: no member named 'name' in 'person'
  error: no member named 'tel' in 'person'
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  Command AnalyzeShallow failed with a nonzero exit code

and build failed.  I tried to use -ferror-limit=0 to no limit errors, but it still build failed with many such errors.
What's the problem? And how to solve it?

cfe-dev mailing list
[hidden email]