Opened 3 years ago

Closed 3 years ago

#62390 closed defect (fixed)

argtable @2.13: error: implicitly declaring library function 'isspace'

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: argtable

Description

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

arg_int.c:60:12: error: implicitly declaring library function 'isspace' with type 'int (int)' [-Werror,-Wimplicit-function-declaration]
    while (isspace(*ptr))
           ^
arg_int.c:60:12: note: include the header <ctype.h> or explicitly provide a declaration for 'isspace'
arg_int.c:89:8: error: implicitly declaring library function 'toupper' with type 'int (int)' [-Werror,-Wimplicit-function-declaration]
   if (toupper(*ptr++)!=toupper(X))
       ^
arg_int.c:89:8: note: include the header <ctype.h> or explicitly provide a declaration for 'toupper'
2 errors generated.
make[2]: *** [arg_int.lo] Error 1
make[2]: *** Waiting for unfinished jobs....

Attachments (1)

argtableout.log (26.9 KB) - added by cooljeanius (Eric Gallager) 3 years ago.
terminal output from attempting to build argtable

Download all attachments as: .zip

Change History (2)

Changed 3 years ago by cooljeanius (Eric Gallager)

Attachment: argtableout.log added

terminal output from attempting to build argtable

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

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In c555e8bf3f443b6d7c9938405243ef1d850f3e0b/macports-ports (master):

argtable: Fix implicit declaration of functions

Closes: #62390

Note: See TracTickets for help on using tickets.