prasanna
prasanna

Reputation: 29

cc1plus: error: unrecognized command line option "-Wno-implicit-fallthrough" [-Werror]

I am getting this error when I am cross compiling compute library on x86 for arm by using SCons. Here I am cross compiling this to run a tensorflow model on armnn sdk. How I can solve this error?
Please give me suggestion.

Upvotes: 2

Views: 14954

Answers (1)

AMA
AMA

Reputation: 4214

-Wno-implicit-fallthrough was first added in gcc-7. You are probably using an older version of the compiler, which does not recognize the option.

You have several options:

  • Use later version of gcc
  • Remove -Wno-implicit-fallthrough flag from gcc call
  • Add -Wno-unknown-warning to suppress the warning

Upvotes: 3

Related Questions