[Piglit] [PATCH] egl_mesa_platform_surfaceless: fix compilation warning

Emil Velikov emil.l.velikov at gmail.com
Mon Jul 10 12:31:26 UTC 2017


On 10 July 2017 at 11:20, Juan A. Suarez Romero <jasuarez at igalia.com> wrote:
> On Fri, 2017-06-30 at 12:18 +0200, Juan A. Suarez Romero wrote:
>> Fixes
>>
>> /build/piglit/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c:94:30:
>> warning: incompatible pointer to integer conversion passing 'void *' to
>> parameter of type 'NativeWindowType' (aka 'unsigned long')
>> [-Wint-conversion]
>>                                               /*native_window*/ NULL,
>>                                                                 ^~~~
>> /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include/stddef.h:105:16: note:
>> expanded from macro 'NULL'
>>                ^~~~~~~~~~
>> /build/piglit/tests/egl/spec/egl_mesa_platform_surfaceless/egl_mesa_platform_surfaceless.c:125:30:
>> warning: incompatible pointer to integer conversion passing 'void *' to
>> parameter of type 'NativePixmapType' (aka 'unsigned long')
>> [-Wint-conversion]
>>                                               /*native_window*/ NULL,
>>                                                                 ^~~~
>> /usr/lib/llvm-3.8/bin/../lib/clang/3.8.1/include/stddef.h:105:16: note:
>> expanded from macro 'NULL'
>>                ^~~~~~~~~~
>> 2 warnings generated.
>>
>
>
> Easy patch. Gently ping if someone can take a look.
>
My bad, I thought I replied already.

The function pointer declaration at the top is off - it should use
"void *" instead of NativePixmapType/NativeWindowType.

-Emil


More information about the Piglit mailing list