1

I created a function

static int init_module(void)
{

}

Then ran CppCheck. It doesn't complain that there's no return statement, and it'd be reasonable if it complained.

Why?

orbitcowboy
  • 1,438
  • 13
  • 25
marmistrz
  • 5,974
  • 10
  • 42
  • 94

0 Answers0