2

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,310
  • 11
  • 22
marmistrz
  • 5,658
  • 10
  • 35
  • 92

0 Answers0