Skip to content

memorymanagement.cpp bug  #40

Description

@gbowne1

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions