mirror of https://github.com/digarok/gsplus.git
remove warning about parse_cli_options not returning a value.
This commit is contained in:
parent
df0833994a
commit
5f2a5e4348
|
@ -115,10 +115,9 @@ int parse_int(const char *str1, int min, int max)
|
|||
tmp = strtol(str1, 0, 0);
|
||||
if (tmp > max) { tmp = max; }
|
||||
if (tmp < min) { tmp = min; }
|
||||
printf ( "TMP %d\n", tmp);
|
||||
return tmp;
|
||||
}
|
||||
int parse_cli_options(int argc, char **argv) {
|
||||
void parse_cli_options(int argc, char **argv) {
|
||||
int i;
|
||||
int tmp1;
|
||||
int skip_amt;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
int parse_cli_options(int argc, char **argv);
|
||||
void parse_cli_options(int argc, char **argv);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -885,7 +885,6 @@ void banner() {
|
|||
int gsplusmain(int argc, char **argv) {
|
||||
int diff;
|
||||
int skip_amt;
|
||||
int tmp1;
|
||||
int i;
|
||||
char *final_arg = 0;
|
||||
|
||||
|
@ -896,7 +895,7 @@ int gsplusmain(int argc, char **argv) {
|
|||
// OG Restoring globals
|
||||
sim65816_initglobals();
|
||||
moremem_init();
|
||||
tmp1 = parse_cli_options(argc, argv);
|
||||
parse_cli_options(argc, argv);
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue