Re: [PATCH 1/4] pc-bios/s390-ccw: Silence warning from Clang by marking panic() as noreturn

2021-05-03 Thread Cornelia Huck
On Sun, 2 May 2021 19:48:33 +0200 Thomas Huth wrote: > When compiling the s390-ccw bios with Clang, the compiler emits a warning: > > pc-bios/s390-ccw/main.c:210:5: warning: variable 'found' is used > uninitialized > whenever switch default is taken [-Wsometimes-uninitialized] >

Re: [PATCH 1/4] pc-bios/s390-ccw: Silence warning from Clang by marking panic() as noreturn

2021-05-03 Thread Philippe Mathieu-Daudé
On 5/3/21 6:53 AM, Thomas Huth wrote: > On 02/05/2021 20.57, Philippe Mathieu-Daudé wrote: >> On 5/2/21 7:48 PM, Thomas Huth wrote: >>> When compiling the s390-ccw bios with Clang, the compiler emits a >>> warning: >>> >>>   pc-bios/s390-ccw/main.c:210:5: warning: variable 'found' is used >>>

Re: [PATCH 1/4] pc-bios/s390-ccw: Silence warning from Clang by marking panic() as noreturn

2021-05-02 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > On 5/2/21 7:48 PM, Thomas Huth wrote: >> When compiling the s390-ccw bios with Clang, the compiler emits a warning: >> >> pc-bios/s390-ccw/main.c:210:5: warning: variable 'found' is used >> uninitialized >> whenever switch default is taken

Re: [PATCH 1/4] pc-bios/s390-ccw: Silence warning from Clang by marking panic() as noreturn

2021-05-02 Thread Thomas Huth
On 02/05/2021 20.57, Philippe Mathieu-Daudé wrote: On 5/2/21 7:48 PM, Thomas Huth wrote: When compiling the s390-ccw bios with Clang, the compiler emits a warning: pc-bios/s390-ccw/main.c:210:5: warning: variable 'found' is used uninitialized whenever switch default is taken

Re: [PATCH 1/4] pc-bios/s390-ccw: Silence warning from Clang by marking panic() as noreturn

2021-05-02 Thread Philippe Mathieu-Daudé
On 5/2/21 7:48 PM, Thomas Huth wrote: > When compiling the s390-ccw bios with Clang, the compiler emits a warning: > > pc-bios/s390-ccw/main.c:210:5: warning: variable 'found' is used > uninitialized > whenever switch default is taken [-Wsometimes-uninitialized] > default: > ^~~

[PATCH 1/4] pc-bios/s390-ccw: Silence warning from Clang by marking panic() as noreturn

2021-05-02 Thread Thomas Huth
When compiling the s390-ccw bios with Clang, the compiler emits a warning: pc-bios/s390-ccw/main.c:210:5: warning: variable 'found' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized] default: ^~~ pc-bios/s390-ccw/main.c:214:16: note: uninitialized