gcc -DPACKAGE_NAME=\"surf\" -DPACKAGE_TARNAME=\"surf\" -DPACKAGE_VERSION=\"1.0.6\" -DPACKAGE_STRING=\"surf\ 1.0.6\" -DPACKAGE_BUGREPORT=\"endrass@mathematik.uni-mainz.de\" -DPACKAGE_URL=\"\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_WCHAR_H=1 -DSTDC_HEADERS=1 -D_ALL_SOURCE=1 -D_DARWIN_C_SOURCE=1 -D_GNU_SOURCE=1 -D_HPUX_ALT_XOPEN_SOCKET_API=1 -D_NETBSD_SOURCE=1 -D_
polyyacc.c: In function ‘yyparse’:
polyyacc.c:1703:16: error: implicit declaration of function ‘yylex’ [-Werror=implicit-function-declaration]
1703 | yychar = yylex ();
| ^~~~~
polyyacc.c:1703:16: warning: nested extern declaration of ‘yylex’ [-Wnested-externs]
../../../yaccsrc/polyyacc.y:474:57: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘int’ may change value [-Wconversion]
474 | $$ = new_char( len + 1 );
| ~ ^ ../../../yaccsrc/polyyacc.y:495:60: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘int’ may change value [-Wconversion]
495 | $$ = new_char( length + 1 );
| ~~~~ ^ ../../../yaccsrc/polyyacc.y:506:60: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘int’ may change value [-Wconversion]
506 | $$ = new_char( length + 1 );
| ~~~~ ^ ../../../yaccsrc/polyyacc.y:518:75: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
518 | if( $3 > 50 || $3 < length )
| ^
../../../yaccsrc/polyyacc.y:525:59: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
525 | zeroes = $3 - length;
| ^ ../../../yaccsrc/polyyacc.y:525:42: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘int’ may change value [-Wconversion]
525 | zeroes = $3 - length;
| ^ ../../../yaccsrc/polyyacc.y:545:75: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
545 | if( $3 > 50 || $3 < length )
| ^
../../../yaccsrc/polyyacc.y:552:59: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
552 | zeroes = $3 - length;
| ^ ../../../yaccsrc/polyyacc.y:552:42: warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘int’ may change value [-Wconversion]
552 | zeroes = $3 - length;
| ^ ../../../yaccsrc/polyyacc.y:167:41: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
167 | system ($2);
| ^~~~~~~~~~~~ ../../../yaccsrc/polyyacc.y:560:33: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
560 | strncpy( &($$[zeroes]),buf,length );
| ^
../../../yaccsrc/polyyacc.y:543:38: note: length computed here
543 | length = strlen( buf );
| ^~~~~~~~~~~~~ ../../../yaccsrc/polyyacc.y:533:33: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
533 | strncpy( &($$[zeroes]),buf,length );
| ^
../../../yaccsrc/polyyacc.y:516:38: note: length computed here
516 | length = strlen( buf );
| ^~~~~~~~~~~~~ ../../../yaccsrc/polyyacc.y:507:29: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
507 | strncpy( $$,buf,length );
| ^
../../../yaccsrc/polyyacc.y:505:38: note: length computed here
505 | length = strlen( buf );
| ^~~~~~~~~~~~~ ../../../yaccsrc/polyyacc.y:496:29: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
496 | strncpy( $$,buf,length );
| ^
../../../yaccsrc/polyyacc.y:494:38: note: length computed here
494 | length = strlen( buf );
| ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [Makefile:534: libsurf_parser_a-polyyacc.o] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 03:44:46 |
Calls: | 6,706 |
Calls today: | 6 |
Files: | 12,235 |
Messages: | 5,350,197 |