chore(radio): cleanup -Wzero-as-null-pointer-constant warnings (#4851)
This commit is contained in:
+4
-4
@@ -461,14 +461,14 @@ int cliTestSD(const char ** argv)
|
||||
|
||||
int cliTestNew()
|
||||
{
|
||||
char * tmp = 0;
|
||||
char * tmp = nullptr;
|
||||
cliSerialPrint("Allocating 1kB with new()");
|
||||
RTOS_WAIT_MS(200);
|
||||
tmp = new char[1024];
|
||||
if (tmp) {
|
||||
cliSerialPrint("\tsuccess");
|
||||
delete[] tmp;
|
||||
tmp = 0;
|
||||
tmp = nullptr;
|
||||
}
|
||||
else {
|
||||
cliSerialPrint("\tFAILURE");
|
||||
@@ -480,7 +480,7 @@ int cliTestNew()
|
||||
if (tmp) {
|
||||
cliSerialPrint("\tFAILURE, tmp = %p", tmp);
|
||||
delete[] tmp;
|
||||
tmp = 0;
|
||||
tmp = nullptr;
|
||||
}
|
||||
else {
|
||||
cliSerialPrint("\tsuccess, allocaton failed, tmp = 0");
|
||||
@@ -492,7 +492,7 @@ int cliTestNew()
|
||||
if (tmp) {
|
||||
cliSerialPrint("\tFAILURE, tmp = %p", tmp);
|
||||
delete[] tmp;
|
||||
tmp = 0;
|
||||
tmp = nullptr;
|
||||
}
|
||||
else {
|
||||
cliSerialPrint("\tsuccess, allocaton failed, tmp = 0");
|
||||
|
||||
Reference in New Issue
Block a user