I am using gcc version 9.3.1 20200408 (Red Hat 9.3.1-2) (GCC)
Downloaded the 1.9 SmaugFUSS
Running an a virtual Fedora 31 in VM Workstation
glennjoos@ess-linux src]$ make
make -s smaug
Compiling o/imc.o....
imc.c: In function ‘void imc_update_tellhistory(CHAR_DATA*, const char*)’:
imc.c:1565:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
1565 | if( IMCTELLHISTORY( ch, x ) == '\0' )
| ^~~~
imc.c: In function ‘void imclog(const char*, ...)’:
imc.c:218:32: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4091 [-Werror=format-truncation=]
218 | snprintf( buf2, LGST, "IMC: %s", buf );
| ^~ ~~~
imc.c:218:12: note: ‘snprintf’ output between 6 and 4101 bytes into a destination of size 4096
218 | snprintf( buf2, LGST, "IMC: %s", buf );
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
imc.c: In function ‘void imcbug(const char*, ...)’:
imc.c:232:33: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4090 [-Werror=format-truncation=]
232 | snprintf( buf2, LGST, " IMC: %s", buf );
| ^~ ~~~
imc.c:232:12: note: ‘snprintf’ output between 7 and 4102 bytes into a destination of size 4096
232 | snprintf( buf2, LGST, " IMC: %s", buf );
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Getting a bunch of this.
Is my compiler just too new?
Downloaded the 1.9 SmaugFUSS
Running an a virtual Fedora 31 in VM Workstation
glennjoos@ess-linux src]$ make
make -s smaug
Compiling o/imc.o....
imc.c: In function ‘void imc_update_tellhistory(CHAR_DATA*, const char*)’:
imc.c:1565:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
1565 | if( IMCTELLHISTORY( ch, x ) == '\0' )
| ^~~~
imc.c: In function ‘void imclog(const char*, ...)’:
imc.c:218:32: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4091 [-Werror=format-truncation=]
218 | snprintf( buf2, LGST, "IMC: %s", buf );
| ^~ ~~~
imc.c:218:12: note: ‘snprintf’ output between 6 and 4101 bytes into a destination of size 4096
218 | snprintf( buf2, LGST, "IMC: %s", buf );
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
imc.c: In function ‘void imcbug(const char*, ...)’:
imc.c:232:33: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4090 [-Werror=format-truncation=]
232 | snprintf( buf2, LGST, " IMC: %s", buf );
| ^~ ~~~
imc.c:232:12: note: ‘snprintf’ output between 7 and 4102 bytes into a destination of size 4096
232 | snprintf( buf2, LGST, " IMC: %s", buf );
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Getting a bunch of this.
Is my compiler just too new?