Skip to content

Comment on OpenBSD kernel source file style guideparent

Comments

Hm. This is the kind of thing where a compiler warning could be useful. I took a quick look at gcc's manual, but it does not seem to have a warning for this particular mistake (argument names do not match between declaration and definition).

That way, you could repeat yourself safely, since the repetition would be checked by the compiler.

I did a quick -Wall test with gcc 4.4.5 and it doesn't warn.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.