diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-03-18 16:08:45 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-05-02 14:53:06 +0200 |
commit | 802f5816363ac032d5a3a612007c302074b302da (patch) | |
tree | d4415c014fb0aadb26179cabf702b4b131a7ad94 /nx-X11/programs | |
parent | c206a0c69d8b2fd1888f8102a32007839b135eae (diff) | |
download | nx-libs-802f5816363ac032d5a3a612007c302074b302da.tar.gz nx-libs-802f5816363ac032d5a3a612007c302074b302da.tar.bz2 nx-libs-802f5816363ac032d5a3a612007c302074b302da.zip |
hw/nxagent/Rootless.c: Type cast type Atom to type long unsigned int before handing it over to %lu in fprintf().
Amends the following compiler warnings:
```
Rootless.c: In function ‘nxagentExportProperty’:
Rootless.c:775:21: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘Atom’ [-Wformat=]
"Property [%lu] too long.\n", propertyX);
^
```
Diffstat (limited to 'nx-X11/programs')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Rootless.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Rootless.c b/nx-X11/programs/Xserver/hw/nxagent/Rootless.c index 53a3b3fb7..4cf4afcad 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Rootless.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Rootless.c @@ -772,7 +772,7 @@ int nxagentExportProperty(pWin, property, type, format, mode, nUnits, value) { #ifdef WARNING fprintf(stderr, "nxagentExportProperty: WARNING! " - "Property [%lu] too long.\n", propertyX); + "Property [%lu] too long.\n", (long unsigned int)propertyX); #endif goto nxagentExportPropertyError; |