remove warning about parse_cli_options not returning a value.

This commit is contained in:
Kelvin Sherlock 2018-12-13 21:50:43 -05:00
parent df0833994a
commit 5f2a5e4348
3 changed files with 3 additions and 5 deletions

View File

@ -115,10 +115,9 @@ int parse_int(const char *str1, int min, int max)
tmp = strtol(str1, 0, 0); tmp = strtol(str1, 0, 0);
if (tmp > max) { tmp = max; } if (tmp > max) { tmp = max; }
if (tmp < min) { tmp = min; } if (tmp < min) { tmp = min; }
printf ( "TMP %d\n", tmp);
return tmp; return tmp;
} }
int parse_cli_options(int argc, char **argv) { void parse_cli_options(int argc, char **argv) {
int i; int i;
int tmp1; int tmp1;
int skip_amt; int skip_amt;

View File

@ -1,7 +1,7 @@
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
int parse_cli_options(int argc, char **argv); void parse_cli_options(int argc, char **argv);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

View File

@ -885,7 +885,6 @@ void banner() {
int gsplusmain(int argc, char **argv) { int gsplusmain(int argc, char **argv) {
int diff; int diff;
int skip_amt; int skip_amt;
int tmp1;
int i; int i;
char *final_arg = 0; char *final_arg = 0;
@ -896,7 +895,7 @@ int gsplusmain(int argc, char **argv) {
// OG Restoring globals // OG Restoring globals
sim65816_initglobals(); sim65816_initglobals();
moremem_init(); moremem_init();
tmp1 = parse_cli_options(argc, argv); parse_cli_options(argc, argv);