I decided to add this git allocator to myself, but first I wanted to test its work. I downloaded all the files, went into the folder, wrote the make command and saw

buddy.c:214:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'size_t' [-Wformat=] TRACE_FLOW("(%lu)", sizesCount); ^ buddy.c:227:2: warning: large integer implicitly truncated to unsigned type [-Woverflow] MARK_BLOCK_FREE(sizeof(Address) * 2); ^ 

And many more of the same warning for other functions. What could be the problem?

  • and when I connect .c to my file, a bunch of similar buddy.c pops out: 178: multiple definition of `buddyInit 'and - Horambe
  • What version of the / make compiler? I have gcc 5.4.0, GNU Make 4.1, no warnings or errors. когда подключаю .c к своему файлу - how exactly, what does it mean to "connect"? - PinkTux
  • @PinkTux 4.8.4; By connecting, I mean: I added #include "buddy.h" to the main body of the program and compiled gcc buddy.c main.c - Horambe
  • I have an assumption that the @Horambe 32bit compiler. - KoVadim
  • Yes. i386 means 32 bit. What to do then? - Horambe

0