[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:
parent
a6b9583628
commit
bfadcf8021
2 changed files with 18 additions and 11 deletions
|
|
@ -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>
|
2007-03-27 Michael Weber <michaelw@foldr.org>
|
||||||
|
|
||||||
* Released version 1.2.7
|
* Released version 1.2.7
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@ void interactive_simulate( nipsvm_bytecode_t *bytecode,
|
||||||
else
|
else
|
||||||
printf( "enter state number (1..%ld) or anything else to quit: ", cnt );
|
printf( "enter state number (1..%ld) or anything else to quit: ", cnt );
|
||||||
fflush( stdout );
|
fflush( stdout );
|
||||||
scanf( "%lu", &sel );
|
(void) scanf( "%lu", &sel );
|
||||||
printf( "\n" );
|
printf( "\n" );
|
||||||
sel--; // convert to 0 based index
|
sel--; // convert to 0 based index
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue