summary refs log tree commit diff stats
path: root/docs/system/device-url-syntax.rst.inc
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2021-05-02 13:49:20 +0200
committerThomas Huth <thuth@redhat.com>2021-05-09 18:19:43 +0200
commit679196a646c91b8ce9a97b0aa81ffb3776cf8046 (patch)
tree38aa549ed988145dac2c1ec12f44de9ac9392976 /docs/system/device-url-syntax.rst.inc
parentb460a220872c28a8da95cbc7e9369d26aa268848 (diff)
downloadfocaccia-qemu-679196a646c91b8ce9a97b0aa81ffb3776cf8046.tar.gz
focaccia-qemu-679196a646c91b8ce9a97b0aa81ffb3776cf8046.zip
pc-bios/s390-ccw: Silence warning from Clang by marking panic() as noreturn
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 use occurs here
     IPL_assert(found, "Boot device not found\n");
                ^~~~~

It's a false positive, it only happens because Clang is not smart enough
to see that the panic() function in the "default:" case can never return.

Anyway, let's explicitely mark panic() with "noreturn" to shut up the
warning.

Message-Id: <20210502174836.838816-2-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'docs/system/device-url-syntax.rst.inc')
0 files changed, 0 insertions, 0 deletions