Changeset 63516 in vbox
- Timestamp:
- Aug 15, 2016 11:22:28 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-darwin.cpp
r62521 r63516 189 189 /*.d_mmap = */ eno_mmap, 190 190 /*.d_strategy = */ eno_strat, 191 /*.d_getc = */ eno_getc,192 /*.d_putc = */ eno_putc,191 /*.d_getc = */ (void *)(uintptr_t)&enodev, //eno_getc, 192 /*.d_putc = */ (void *)(uintptr_t)&enodev, //eno_putc, 193 193 /*.d_type = */ 0 194 194 }; … … 228 228 static kern_return_t vgdrvDarwinStart(struct kmod_info *pKModInfo, void *pvData) 229 229 { 230 RT_NOREF(pKModInfo, pvData); 231 230 232 /* 231 233 * Initialize IPRT. … … 282 284 static kern_return_t vgdrvDarwinStop(struct kmod_info *pKModInfo, void *pvData) 283 285 { 286 RT_NOREF(pKModInfo, pvData); 284 287 RTR0TermForced(); 285 288 … … 315 318 { 316 319 int rc2 = cdevsw_remove(g_iMajorDeviceNo, &g_DevCW); 317 Assert(rc2 == g_iMajorDeviceNo); 320 Assert(rc2 == g_iMajorDeviceNo); NOREF(rc2); 318 321 g_iMajorDeviceNo = -1; 319 322 } … … 339 342 static int vgdrvDarwinOpen(dev_t Dev, int fFlags, int fDevType, struct proc *pProcess) 340 343 { 344 RT_NOREF(fFlags, fDevType); 345 341 346 /* 342 347 * Only two minor devices numbers are allowed. … … 398 403 static int vgdrvDarwinClose(dev_t Dev, int fFlags, int fDevType, struct proc *pProcess) 399 404 { 405 RT_NOREF(Dev, fFlags, fDevType, pProcess); 400 406 Log(("vgdrvDarwinClose: pid=%d\n", (int)RTProcSelf())); 401 407 Assert(proc_pid(pProcess) == (int)RTProcSelf()); … … 421 427 static int vgdrvDarwinIOCtl(dev_t Dev, u_long iCmd, caddr_t pData, int fFlags, struct proc *pProcess) 422 428 { 429 RT_NOREF(Dev, fFlags); 423 430 //const bool fUnrestricted = minor(Dev) == 0; 424 431 const RTPROCESS Process = proc_pid(pProcess); … … 460 467 static int vgdrvDarwinIOCtlSlow(PVBOXGUESTSESSION pSession, u_long iCmd, caddr_t pData, struct proc *pProcess) 461 468 { 469 RT_NOREF(pProcess); 462 470 LogFlow(("vgdrvDarwinIOCtlSlow: pSession=%p iCmd=%p pData=%p pProcess=%p\n", pSession, iCmd, pData, pProcess)); 463 471 … … 605 613 IOService *pProvider, void *pvMsgArg, vm_size_t cbMsgArg) 606 614 { 615 RT_NOREF(pvTarget, pProvider, pvMsgArg, cbMsgArg); 607 616 LogFlow(("VBoxGuest: Got sleep/wake notice. Message type was %x\n", uMessageType)); 608 617 … … 717 726 static bool vgdrvDarwinDirectIrqHandler(OSObject *pOwner, IOFilterInterruptEventSource *pSrc) 718 727 { 728 RT_NOREF(pOwner); 719 729 if (!pSrc) 720 730 return false;
Note:
See TracChangeset
for help on using the changeset viewer.