ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] Return from a void function

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 10 Sep 2003 11:56:08 -0700

On Sep 10, 2003, at 9:17 AM, Albert Chin wrote:

The Sun C compiler doesn't allow you to return a value from a void
function.

...and MSVC++ allows it but warns about it. That fix has already been checked in.

(Is there some way to convince GCC to warn about that, and C++-style comments, without

1) turning off other GCC extensions that we use safely, such as some of the __attribute__ stuff

or

	2) turning off extensions that the native system header files require?)