Opened 15 months ago

#68083 assigned defect

miriad @4.3.8.20160322: error: implicitly declaring library function 'strlen', 'strncmp'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: pkgw (Peter Williams)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: miriad

Description

https://build.macports.org/builders/ports-12_x86_64-builder/builds/80361/steps/install-port/logs/stdio

docfmt.c:29:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main(argc,argv)
^
docfmt.c:121:21: error: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-declaration]
  if(!echo)length = strlen(keyword);
                    ^
docfmt.c:121:21: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
docfmt.c:128:17: error: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
    if(!echo && strncmp(line,"%A",2));
                ^
docfmt.c:128:17: note: include the header <string.h> or explicitly provide a declaration for 'strncmp'
1 warning and 2 errors generated.
make[2]: *** [docfmt.o] Error 1

See WimplicitFunctionDeclaration.

Change History (0)

Note: See TracTickets for help on using tickets.