Opened 4 years ago

Closed 4 years ago

#62373 closed defect (fixed)

rx @1.5: error: implicitly declaring library function 'malloc'

Reported by: cooljeanius (Eric Gallager) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur catalina Cc:
Port: rx

Description

Another victim of -Werror=implicit-function-declaration being on by default now:

rxnode.c:43:18: error: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Werror,-Wimplicit-function-declaration]
  tmp = (char *) malloc (INITSIZE);
                 ^
rxnode.c:43:18: note: include the header <stdlib.h> or explicitly provide a declaration for 'malloc'

(there are a bunch of these so I'll attach them as a separate logfile instead of pasting them all here)

Attachments (1)

rxout.log (48.6 KB) - added by cooljeanius (Eric Gallager) 4 years ago.
terminal output from attempting to build rx

Download all attachments as: .zip

Change History (2)

Changed 4 years ago by cooljeanius (Eric Gallager)

Attachment: rxout.log added

terminal output from attempting to build rx

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In c282bc95110fd6bb233d51872e857c6b12802129/macports-ports (master):

rx: Fix implicit declaration of functions

Closes: #62373

Note: See TracTickets for help on using tickets.