[haiku-commits] Re: haiku: hrev52830 - headers/os/kernel src/system/libnetwork src/kits/network/libnetapi headers/private/system src/kits/app

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 2 Feb 2019 23:42:55 +0100

Am 02/02/2019 um 19:34 schrieb waddlesplash:

On Sat, Feb 2, 2019 at 11:59 AM Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> wrote:
+void initialize_before(image_id);
We never omit the variable name. Even if it's almost self explaining :-)
This function is always implemented by applications, and I think some
compilers throw warnings if the variable name in the declaration
doesn't match the one in the definition. So, leaving out the variable
name is "safer", as then applications can name the variable whatever
they like.

Never heard that one, and even if such a compiler warning actually exists, one could easily disable it via options.
No reason to leave something behind we do for 18 years now :-)

Bye,
   Axel.

Other related posts: