aboutsummaryrefslogtreecommitdiff
path: root/ui/gtk-clipboard.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2023-10-04 13:48:09 +0200
committerMarkus Armbruster <armbru@redhat.com>2023-10-06 12:47:57 +0200
commitda3182887cd3d3d02c3406549818cf222a9f0ca1 (patch)
treec70da490d4562d7d857633148ca39482f838226b /ui/gtk-clipboard.c
parent5ae80e6297080b3592b4658d92acfdba5255fc8b (diff)
downloadqemu-da3182887cd3d3d02c3406549818cf222a9f0ca1.zip
qemu-da3182887cd3d3d02c3406549818cf222a9f0ca1.tar.gz
qemu-da3182887cd3d3d02c3406549818cf222a9f0ca1.tar.bz2
hw/virtio/vhost: Silence compiler warnings in vhost code when using -Wshadow
Rename a variable in vhost_dev_sync_region() and remove a superfluous declaration in vhost_commit() to make this code compilable with "-Wshadow". Signed-off-by: Thomas Huth <thuth@redhat.com> Message-ID: <20231004114809.105672-1-thuth@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-By: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'ui/gtk-clipboard.c')
0 files changed, 0 insertions, 0 deletions
r'>hjl/pr19371/master Unnamed repository; edit this file 'description' to name the repository.root
aboutsummaryrefslogtreecommitdiff
path: root/elf/initfirst.c
blob: 5ca83d21bc4da0c5b58c91238f7b342b71dac827 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <dlfcn.h>
#include <stdio.h>

int
main (void)
{
  void *h = dlopen ("firstobj.so", RTLD_LAZY);
  void *f;
  if (! h)
    {
      printf ("cannot find firstobj.so: %s\n", dlerror ());
      return 1;
    }
  f = dlsym (h, "foo");
  if (! f)
    {
      printf ("cannot find symbol foo: %s\n", dlerror ());
      return 2;
    }
  ((void (*) (void)) f) ();
  return 0;
}