Bug 40028

Summary: warnings in glapitemp.h for glapi dispatch table return types
Product: Mesa Reporter: Evan Martin (Chromium) <evan>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Evan Martin (Chromium) 2011-08-11 16:29:40 UTC
We encounter these warnings in the Chrome build.

In file included from third_party/mesa/MesaLib/src/mapi/glapi/glapi_nop.c:142:
third_party/mesa/MesaLib/src/mapi/glapi/glapitemp.h: In function
'NoOpGetString':
third_party/mesa/MesaLib/src/mapi/glapi/glapitemp.h:1462: warning:
return makes pointer from integer without a cast
third_party/mesa/MesaLib/src/mapi/glapi/glapitemp.h: In function
'NoOpMapBuffer':
third_party/mesa/MesaLib/src/mapi/glapi/glapitemp.h:3392: warning:
return makes pointer from integer without a cast
third_party/mesa/MesaLib/src/mapi/glapi/glapitemp.h: In function
'NoOpMapBufferARB':
third_party/mesa/MesaLib/src/mapi/glapi/glapitemp.h:3397: warning:
return makes pointer from integer without a cast
third_party/mesa/MesaLib/src/mapi/glapi/glapitemp.h: In function
'NoOpMapBufferRange':
third_party/mesa/MesaLib/src/mapi/glapi/glapitemp.h:3907: warning:
return makes pointer from integer without a cast
third_party/mesa/MesaLib/src/mapi/glapi/glapitemp.h: In function
'NoOpFenceSync':
third_party/mesa/MesaLib/src/mapi/glapi/glapitemp.h:3937: warning:
return makes pointer from integer without a cast

This is as a result of using the same No-op function for all return types.


See downstream bug:
http://code.google.com/p/chromium/issues/detail?id=92568
Comment 1 Timothy Arceri 2018-04-13 11:18:59 UTC
Upstream bug is marked as fixed so closing this too.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.