Commit ccf2ed5
committed
Avoid NULL for non-pointer
FreeBSD and OpenBSD define NULL as nullptr for C++11 or later.
freebsd/freebsd-src@c8ed04c
openbsd/src@6ecde74
Source/GmmLib/TranslationTable/GmmPageTableMgr.cpp:415:21: error: non-pointer operand type 'GMM_GFX_ADDRESS' (aka 'unsigned long') incompatible with nullptr
return AuxTTObj ? AuxTTObj->GetL3Address() : NULL;
^ ~~~~~~~~~~~~~~~~~~~~~~~~
Source/GmmLib/TranslationTable/GmmPageTableMgr.cpp:474:28: error: invalid operands to binary expression ('GMM_GFX_ADDRESS' (aka 'unsigned long') and 'nullptr_t')
if(GetAuxL3TableAddr() == NULL)
~~~~~~~~~~~~~~~~~~~ ^ ~~~~1 parent f5007bd commit ccf2ed5
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| |||
0 commit comments