AlgorithMan-de / wyoos

Source codes for the "Write your own Operating System" video-series on YouTube
http://wyoos.org
GNU General Public License v3.0
719 stars 222 forks source link

memorymanagement.cpp bug #40

Open gbowne1 opened 1 month ago

gbowne1 commented 1 month ago

Ok, so I ran the makefile which did pretty good at building the os. however A few files may need a little help? I wondered if anyone else encountered this.

memorymanagement.cpp and memorymanagement.h are both complaining about the first parameter of allocation function must be of type 'size_t'/ from the operator new.

this also affects pci.cpp, tcp.cpp, udp.cpp files in pretty much the same manner but gives a hint to a unsigned long? in my intellisense.

though in the build proccess that make ran, only complained about:

src/memorymanagement.cpp: In function ‘void operator new(unsigned int)’: src/memorymanagement.cpp:97:16: warning: ‘operator new’ must not return NULL unless it is declared ‘throw()’ (or -fcheck-new is in effect) return 0; ^ src/memorymanagement.cpp: In function ‘void operator new [](unsigned int)’: src/memorymanagement.cpp:104:16: warning: ‘operator new’ must not return NULL unless it is declared ‘throw()’ (or -fcheck-new is in effect) return 0;

I couldnt find any other issues.