VirtualBox

Changeset 63021 in vbox


Ignore:
Timestamp:
Aug 4, 2016 11:43:05 PM (8 years ago)
Author:
vboxsync
Message:

GA/NT/Graphics: warnings

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/Makefile.kmk

    r62522 r63021  
    4040
    4141TEMPLATE_VBoxGuestWineDLL_DEFS.x86 = __i386__
     42#  -wd4100: unreferenced format parameter
     43#  -wd4204: nonstandard extension used : non-constant initializer
     44#  -wd4245: '=' : conversion from 'int' to 'DWORD', signed/unsigned mismatch
     45#  -wd4305: 'function' : truncation from 'double' to 'GLclampf'
     46TEMPLATE_VBoxGuestWineDLL_CFLAGS = $(TEMPLATE_VBOXGUESTR3NPDLL_CFLAGS) -wd4100  -wd4204 -wd4245 -wd4305
    4247
    4348#
     
    5257#TEMPLATE_VBoxGuestWineD3DxDLL_INCS.x86   = vbox/libWineStub/include
    5358TEMPLATE_VBoxGuestWineD3DxDLL_DEFS = VBOX_WINE_WITH_IPRT
     59TEMPLATE_VBoxGuestWineD3DxDLL_CFLAGS = -wd4100  -wd4204 -wd4245 -wd4305
    5460TEMPLATE_VBoxGuestWineD3DxDLL_LIBS = \
    5561        $(VBOX_LIB_IPRT_GUEST_R3) \
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/d3d8/d3d8_private.h

    r48345 r63021  
    3939#define NONAMELESSSTRUCT
    4040#define COBJMACROS
     41#ifndef VBOX
    4142#include "windef.h"
    4243#include "winbase.h"
    4344#include "wingdi.h"
    4445#include "wine/debug.h"
     46#else
     47# include <iprt/win/windows.h>
     48#endif
    4549#include "d3d8.h"
    4650#include "wine/wined3d.h"
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/vbox/libWineStub/debug.c

    r46521 r63021  
    2828 */
    2929
     30#ifdef VBOX
     31#include <iprt/win/windows.h>
     32#else
    3033#include <windows.h>
     34#endif
    3135
    3236#include "config.h"
     
    161165            for (i = 0; i < sizeof(debug_classes)/sizeof(debug_classes[0]); i++)
    162166            {
    163                 int len = strlen(debug_classes[i]);
     167                int len = (int)strlen(debug_classes[i]);
    164168                if (len != (p - opt)) continue;
    165169                if (!memcmp( opt, debug_classes[i], len ))  /* found it */
     
    299303int interlocked_xchg_add( int *dest, int incr )
    300304{
    301     return InterlockedExchangeAdd(dest, incr);
     305    return InterlockedExchangeAdd((LONG *)dest, incr);
    302306}
    303307
     
    327331static const char *default_dbgstr_an( const char *str, int n )
    328332{
    329     static const char hex[16] = "0123456789abcdef";
     333    static const char hex[16+1] = "0123456789abcdef";
    330334    char *dst, *res;
    331335    size_t size;
     
    338342        return res;
    339343    }
    340     if (n == -1) n = strlen(str);
     344    if (n == -1) n = (int)strlen(str);
    341345    if (n < 0) n = 0;
    342346    size = 10 + min( 300, n * 4 );
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/context.c

    r51313 r63021  
    13421342
    13431343#if defined(VBOX_WINE_WITH_SINGLE_CONTEXT) || defined(VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT)
    1344 void context_clear_on_thread_detach()
     1344void context_clear_on_thread_detach(void)
    13451345{
    13461346    /* In theory, we should do context_set_current(NULL) here,
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/vboxext.h

    r62522 r63021  
    11/* $Id$ */
    22/** @file
    3  *
    43 * VBox extension to Wine D3D
    5  *
     4 */
     5
     6/*
    67 * Copyright (C) 2011-2016 Oracle Corporation
    78 *
     
    1415 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    1516 */
     17
    1618#ifndef ___VBOXEXT_H__
    1719#define ___VBOXEXT_H__
    1820
    1921#ifdef VBOX_WINE_WITHOUT_LIBWINE
    20 # include <windows.h>
     22# include <iprt/win/windows.h>
    2123#endif
    2224
    2325#include <iprt/list.h>
    2426
    25 HRESULT VBoxExtCheckInit();
    26 HRESULT VBoxExtCheckTerm();
     27HRESULT VBoxExtCheckInit(void);
     28HRESULT VBoxExtCheckTerm(void);
    2729#if defined(VBOX_WINE_WITH_SINGLE_CONTEXT) || defined(VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT)
    2830# ifndef VBOX_WITH_WDDM
     
    4042 * So lock order should always be "wined3d lock" -> "dll lock".
    4143 * To avoid possible deadlocks we make an asynchronous call to a worker thread to make a context release from there. */
     44struct wined3d_context;
    4245void VBoxExtReleaseContextAsync(struct wined3d_context *context);
    4346#endif
     
    5558typedef FNVBOXEXT_HASHMAP_EQUAL *PFNVBOXEXT_HASHMAP_EQUAL;
    5659
     60struct VBOXEXT_HASHMAP;
     61struct VBOXEXT_HASHMAP_ENTRY;
    5762typedef DECLCALLBACK(bool) FNVBOXEXT_HASHMAP_VISITOR(struct VBOXEXT_HASHMAP *pMap, void *pvKey, struct VBOXEXT_HASHMAP_ENTRY *pValue, void *pvVisitor);
    5863typedef FNVBOXEXT_HASHMAP_VISITOR *PFNVBOXEXT_HASHMAP_VISITOR;
     
    98103}
    99104
     105struct VBOXEXT_HASHCACHE_ENTRY;
    100106typedef DECLCALLBACK(void) FNVBOXEXT_HASHCACHE_CLEANUP_ENTRY(void *pvKey, struct VBOXEXT_HASHCACHE_ENTRY *pEntry);
    101107typedef FNVBOXEXT_HASHCACHE_CLEANUP_ENTRY *PFNVBOXEXT_HASHCACHE_CLEANUP_ENTRY;
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/wined3d_gl.h

    r52329 r63021  
    200200PGLFNCHROMIUMPARAMETERUCR pglChromiumParameteriCR;
    201201
     202struct VBOXUHGSMI;
    202203HGLRC (WINAPI *pVBoxCreateContext)(HDC, struct VBOXUHGSMI*) DECLSPEC_HIDDEN;
    203204void (WINAPI *pVBoxCtxChromiumParameteriCR)(HGLRC , GLenum , GLint) DECLSPEC_HIDDEN;
Note: See TracChangeset for help on using the changeset viewer.

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