[iface/nips/nips_vm]

Kill a warning on Ubuntu.

* interactive.c (interactive_simulate): Explicitly ignore the
return of scanf to kill a warning.
This commit is contained in:
Alexandre Duret-Lutz 2010-01-21 16:00:10 +01:00
parent a6b9583628
commit bfadcf8021
2 changed files with 18 additions and 11 deletions

View file

@ -1,3 +1,10 @@
2010-01-21 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Kill a warning on Ubuntu.
* interactive.c (interactive_simulate): Explicitly ignore the
return of scanf to kill a warning.
2007-03-27 Michael Weber <michaelw@foldr.org>
* Released version 1.2.7

View file

@ -176,7 +176,7 @@ void interactive_simulate( nipsvm_bytecode_t *bytecode,
else
printf( "enter state number (1..%ld) or anything else to quit: ", cnt );
fflush( stdout );
scanf( "%lu", &sel );
(void) scanf( "%lu", &sel );
printf( "\n" );
sel--; // convert to 0 based index