"privates.h", line 198: warning: void function cannot return value
Providing an argument to return in a function with void return type is not allowed by the C standard, and makes the Sun compilers unhappy. (They actually flag it as an error, unless using a new enough version to be able to downgrade it to a warning with "-features=extensions".) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Cyril Brulebois <kibi@debian.org>
This commit is contained in:
parent
eadf502179
commit
bc04065b5c
|
@ -195,7 +195,7 @@ dixGetScreenPrivate(PrivatePtr *privates, const DevScreenPrivateKey key, ScreenP
|
|||
static inline void
|
||||
dixSetScreenPrivate(PrivatePtr *privates, const DevScreenPrivateKey key, ScreenPtr pScreen, pointer val)
|
||||
{
|
||||
return dixSetPrivate(privates, _dixGetScreenPrivateKey(key, pScreen), val);
|
||||
dixSetPrivate(privates, _dixGetScreenPrivateKey(key, pScreen), val);
|
||||
}
|
||||
|
||||
static inline pointer
|
||||
|
|
Loading…
Reference in New Issue