Re: [Qemu-devel] [PATCH v4 08/16] configure: Use -Wunused-const-variable

2018-08-21 Thread Laurent Vivier
Le 18/08/2018 à 21:01, Richard Henderson a écrit : > For the linux-user syscall split, we have static const structs > that must be matched up with a switch statement that uses them. > By default, gcc will not warn for such a variable, but silently > remove them. > > For C++, such objects are somet

Re: [Qemu-devel] [PATCH v4 08/16] configure: Use -Wunused-const-variable

2018-08-21 Thread Laurent Vivier
Le 18/08/2018 à 21:01, Richard Henderson a écrit : > For the linux-user syscall split, we have static const structs > that must be matched up with a switch statement that uses them. > By default, gcc will not warn for such a variable, but silently > remove them. > > For C++, such objects are somet

Re: [Qemu-devel] [PATCH v4 08/16] configure: Use -Wunused-const-variable

2018-08-21 Thread Laurent Vivier
Le 18/08/2018 à 21:01, Richard Henderson a écrit : > For the linux-user syscall split, we have static const structs > that must be matched up with a switch statement that uses them. > By default, gcc will not warn for such a variable, but silently > remove them. > > For C++, such objects are somet

[Qemu-devel] [PATCH v4 08/16] configure: Use -Wunused-const-variable

2018-08-18 Thread Richard Henderson
For the linux-user syscall split, we have static const structs that must be matched up with a switch statement that uses them. By default, gcc will not warn for such a variable, but silently remove them. For C++, such objects are sometimes declared for their constructor side effects. Do not propa