VirtualBox

Changeset 62934 in vbox


Ignore:
Timestamp:
Aug 3, 2016 5:32:43 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109537
Message:

Devices: warnings

Location:
trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/win/objbase.h

    r62780 r62934  
    3030#pragma warning(push)
    3131#pragma warning(disable:4668) /* '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' */
     32#if !defined(__cplusplus)
     33# pragma warning(disable:4255) /* 'FARPROC' : no function prototype given: converting '()' to '(void)' */
     34#endif
    3235
    3336#include <objbase.h>
  • trunk/src/VBox/Devices/Graphics/shaderlib/libWineStub/debug.c

    r53222 r62934  
    3232
    3333#include "initguid.h"
     34#ifdef VBOX
     35# include <iprt/win/objbase.h>
     36# include <wine/wined3d.h>
     37# include <iprt/win/windows.h>
     38#else
    3439#include <objbase.h>
    3540#include <wine/wined3d.h>
    3641#include <windows.h>
     42#endif
    3743
    3844#include <stdlib.h>
  • trunk/src/VBox/Devices/Graphics/shaderlib/libWineStub/include/wine/list.h

    r53201 r62934  
    242242#undef LIST_ENTRY
    243243#define LIST_ENTRY(elem, type, field) \
    244     ((type *)((char *)(elem) - (unsigned long)(&((type *)0)->field)))
     244    ((type *)((char *)(elem) - (uintptr_t)(&((type *)0)->field)))
    245245
    246246#endif  /* __WINE_SERVER_LIST_H */
  • trunk/src/VBox/Devices/Graphics/shaderlib/shaderapi.c

    r62514 r62934  
    1515 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    1616 */
     17
    1718#include <iprt/err.h>
    1819#include <iprt/mem.h>
     
    144145    /* Dynamically load all GL core functions. */
    145146#ifdef RT_OS_WINDOWS
    146 # define USE_GL_FUNC(pfn) pfn = (void*)GetProcAddress(GetModuleHandle("opengl32.dll"), #pfn);
     147    HANDLE hOpenGl32 = GetModuleHandle("opengl32.dll");
     148# define USE_GL_FUNC(pfn) *(FARPROC *)(&pfn) = GetProcAddress(hOpenGl32, #pfn);
    147149#else
    148 # define USE_GL_FUNC(pfn) pfn = (void*)OGLGETPROCADDRESS(#pfn);
     150# define USE_GL_FUNC(pfn) pfn = (void *)OGLGETPROCADDRESS(#pfn);
    149151#endif
    150152    GL_FUNCS_GEN;
     
    154156#define USE_GL_FUNC(type, pfn, ext, replace) \
    155157{ \
    156     gl_info->pfn = (void*)OGLGETPROCADDRESS(#pfn); \
     158    gl_info->pfn = (type)OGLGETPROCADDRESS(#pfn); \
    157159}
    158160    GL_EXT_FUNCS_GEN;
     
    204206struct wined3d_context *context_acquire(IWineD3DDeviceImpl *This, IWineD3DSurface *target, enum ContextUsage usage)
    205207{
     208    RT_NOREF(This, target, usage);
    206209    return g_pCurrentContext;
    207210}
     
    322325    }
    323326
    324     hr = vertexshader_init(object, This, pShaderData, NULL, NULL, NULL);
     327    hr = vertexshader_init(object, This, (DWORD const *)pShaderData, NULL, NULL, NULL);
    325328    if (FAILED(hr))
    326329    {
     
    356359    }
    357360
    358     hr = pixelshader_init(object, This, pShaderData, NULL, NULL, NULL);
     361    hr = pixelshader_init(object, This, (DWORD const *)pShaderData, NULL, NULL, NULL);
    359362    if (FAILED(hr))
    360363    {
  • trunk/src/VBox/Devices/Graphics/shaderlib/wined3d_private.h

    r54765 r62934  
    4747#include "winuser.h"
    4848#else
    49 #include <windows.h>
     49#include <iprt/win/windows.h>
    5050#endif
    5151#include "wine/debug.h"
     
    13331333void context_surface_update(struct wined3d_context *context, IWineD3DSurfaceImpl *surface) DECLSPEC_HIDDEN;
    13341334#if defined(VBOX_WINE_WITH_SINGLE_CONTEXT) || defined(VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT)
    1335 void context_clear_on_thread_detach();
     1335void context_clear_on_thread_detach(void);
    13361336#endif
    13371337/* Macros for doing basic GPU detection based on opengl capabilities */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette