[PATCH xserver 2/2] os: Annotate OsVendorFatalError as _X_ATTRIBUTE_PRINTF
Michal Suchanek
hramrach at gmail.com
Mon Apr 23 09:58:58 PDT 2012
Hello,
On 20 April 2012 01:54, Jeremy Huddleston <jeremyhu at apple.com> wrote:
> Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
> ---
> include/os.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/os.h b/include/os.h
> index 166c60c..276eb52 100644
> --- a/include/os.h
> +++ b/include/os.h
> @@ -321,7 +321,8 @@ extern _X_EXPORT void
> OsCleanup(Bool);
>
> extern _X_EXPORT void
> -OsVendorFatalError(const char *f, va_list args);
> +OsVendorFatalError(const char *f, va_list args)
> +_X_ATTRIBUTE_PRINTF(1, 0);
This looks OK and does not produce additional warnings which is
probably the intended result ;-)
Tested-By: Michal Suchanek <hramrach at gmail.com>
Thanks
Michal
More information about the xorg-devel
mailing list