ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Do we still need/want -Wc++-compat?

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 30 Sep 2015 21:38:47 -0700
On Sep 30, 2015, at 6:53 PM, Guy Harris <guy@xxxxxxxxxxxx> wrote:

> I think the intent was to be able to run Wireshark's C code through C++ compilers; I can't find the mail where this was discussed, but, as I remember, the issue was that Microsoft were dragging their feet on C99 support, and we wanted to be able to use at least some features present in both C99 and the versions of C++ supported by the Microsoft compiler.
> 
> Microsoft have gotten more receptive to C99 features; is this something we still want to contemplate - and to try to keep open as a possibility, by compiling with -Wc++-compat?
> 
> If I try to build what's currently in master, it fails on my Yosemite machine, with Xcode 7.0.1

Not after rebuilding and reinstalling all the development libraries and doing make maintainer-clean/autogen/configure/make.

But what was the reason for adding checks for C++ compatibility, and does it still apply?