VirtualBox

Changeset 62993 in vbox


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

Devices: warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Parallel/DrvHostParallel.cpp

    r62686 r62993  
    330330    /* Get handle of the first logical configuration. */
    331331    LOG_CONF  hFirstLogConf;
    332     short     wHeaderSize = sizeof(IO_DES);
    333332    CONFIGRET rcCm = CM_Get_First_Log_Conf(&hFirstLogConf, DevInst, ALLOC_LOG_CONF);
    334333    if (rcCm != CR_SUCCESS)
     
    530529static int drvHostParallelSetMode(PDRVHOSTPARALLEL pThis, PDMPARALLELPORTMODE enmMode)
    531530{
     531    LogFlowFunc(("mode=%d\n", enmMode));
     532# ifndef VBOX_WITH_WIN_PARPORT_SUP
     533    int rc = VINF_SUCCESS;
    532534    int iMode = 0;
    533     int rc = VINF_SUCCESS;
    534     LogFlowFunc(("mode=%d\n", enmMode));
    535 
    536 # ifndef VBOX_WITH_WIN_PARPORT_SUP
    537535    int rcLnx;
    538536    if (pThis->enmModeCur != enmMode)
     
    564562    return rc;
    565563# else  /* VBOX_WITH_WIN_PARPORT_SUP */
     564    RT_NOREF(pThis, enmMode);
    566565    return VINF_SUCCESS;
    567566# endif /* VBOX_WITH_WIN_PARPORT_SUP */
     
    589588 * @interface_method_impl{PDMIHOSTPARALLELCONNECTOR,pfnWrite}
    590589 */
    591 static DECLCALLBACK(int) drvHostParallelWrite(PPDMIHOSTPARALLELCONNECTOR pInterface, const void *pvBuf, size_t cbWrite,
    592                                               PDMPARALLELPORTMODE enmMode)
    593 {
    594     PPDMDRVINS          pDrvIns = PDMIBASE_2_PDMDRV(pInterface);
    595     //PDRVHOSTPARALLEL    pThis   = PDMINS_2_DATA(pDrvIns, PDRVHOSTPARALLEL);
    596     PDRVHOSTPARALLEL    pThis   = RT_FROM_MEMBER(pInterface, DRVHOSTPARALLEL, CTX_SUFF(IHostParallelConnector));
     590static DECLCALLBACK(int)
     591drvHostParallelWrite(PPDMIHOSTPARALLELCONNECTOR pInterface, const void *pvBuf, size_t cbWrite, PDMPARALLELPORTMODE enmMode)
     592{
     593    PDRVHOSTPARALLEL pThis = RT_FROM_MEMBER(pInterface, DRVHOSTPARALLEL, CTX_SUFF(IHostParallelConnector));
    597594    int rc = VINF_SUCCESS;
    598     int rcLnx = 0;
    599595
    600596    LogFlowFunc(("pvBuf=%#p cbWrite=%d\n", pvBuf, cbWrite));
     
    604600        return rc;
    605601# ifndef VBOX_WITH_WIN_PARPORT_SUP
     602    int rcLnx = 0;
    606603    if (enmMode == PDM_PARALLEL_PORT_MODE_SPP)
    607604    {
     
    638635 * @interface_method_impl{PDMIHOSTPARALLELCONNECTOR,pfnRead}
    639636 */
    640 static DECLCALLBACK(int) drvHostParallelRead(PPDMIHOSTPARALLELCONNECTOR pInterface, void *pvBuf, size_t cbRead,
    641                                             PDMPARALLELPORTMODE enmMode)
    642 {
    643     PDRVHOSTPARALLEL    pThis  = RT_FROM_MEMBER(pInterface, DRVHOSTPARALLEL, CTX_SUFF(IHostParallelConnector));
     637static DECLCALLBACK(int)
     638drvHostParallelRead(PPDMIHOSTPARALLELCONNECTOR pInterface, void *pvBuf, size_t cbRead, PDMPARALLELPORTMODE enmMode)
     639{
     640    PDRVHOSTPARALLEL pThis = RT_FROM_MEMBER(pInterface, DRVHOSTPARALLEL, CTX_SUFF(IHostParallelConnector));
    644641    int rc = VINF_SUCCESS;
    645642
     
    666663
    667664# else  /* VBOX_WITH_WIN_PARPORT_SUP */
     665    RT_NOREF(enmMode);
    668666    if (pThis->PortDirectData != 0)
    669667    {
     
    870868static DECLCALLBACK(void) drvHostParallelDestruct(PPDMDRVINS pDrvIns)
    871869{
     870    PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns);
     871    LogFlowFunc(("iInstance=%d\n", pDrvIns->iInstance));
     872
     873#ifndef VBOX_WITH_WIN_PARPORT_SUP
    872874    PDRVHOSTPARALLEL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPARALLEL);
    873     LogFlowFunc(("iInstance=%d\n", pDrvIns->iInstance));
    874     PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns);
    875 
    876 #ifndef VBOX_WITH_WIN_PARPORT_SUP
    877875    if (pThis->hFileDevice != NIL_RTFILE)
    878876        ioctl(RTFileToNative(pThis->hFileDevice), PPRELEASE);
     
    911909static DECLCALLBACK(int) drvHostParallelConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
    912910{
     911    RT_NOREF(fFlags);
     912    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
     913    LogFlowFunc(("iInstance=%d\n", pDrvIns->iInstance));
    913914    PDRVHOSTPARALLEL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPARALLEL);
    914     LogFlowFunc(("iInstance=%d\n", pDrvIns->iInstance));
    915 
    916     PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
     915
    917916
    918917    /*
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