[PATCH libX11] Clean up 'no previous prototype' warning
Julien Cristau
jcristau at debian.org
Fri Mar 19 14:52:40 PDT 2010
On Fri, Mar 19, 2010 at 15:39:07 -0500, Jeff Smith wrote:
> Signed-off-by: Jeff Smith <whydoubt at yahoo.com>
> ---
> src/xlibi18n/lcFile.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/src/xlibi18n/lcFile.c b/src/xlibi18n/lcFile.c
> index 21a546d..9ee90ea 100644
> --- a/src/xlibi18n/lcFile.c
> +++ b/src/xlibi18n/lcFile.c
> @@ -34,6 +34,11 @@
> #include <X11/Xos.h>
> #include <unistd.h>
>
> +void xlocaledir(
> + char *buf,
> + int buf_len
> +);
> +
The warning is a sign that this function should have a prototype in a
header file, so it isn't duplicated with its definition in
src/xlibi18n/lcFile.c and use in modules/im/ximcp/imLcPrs.c. Silencing
it by adding yet another copy of the prototype doesn't help, IMO.
Cheers,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100319/b09bd065/attachment.pgp>
More information about the xorg-devel
mailing list