Commit 654bd598 authored by John Douglas Veitch's avatar John Douglas Veitch
Browse files

Fix implicit-fallthrough warnings in lalapps/ring/ (strict gcc 7 compatibility)

parent 25a114e9
......@@ -154,6 +154,7 @@ int coh_PTF_parse_options(struct coh_PTF_params *params,int argc,char **argv )
else
error( "error parsing option %s with argument %s\n",
long_options[option_index].name, LALoptarg );
break;
case 'a': /* gps-start-time */
localparams.startTime.gpsSeconds = atol( LALoptarg );
break;
......@@ -443,8 +444,10 @@ int coh_PTF_parse_options(struct coh_PTF_params *params,int argc,char **argv )
break;
case '?':
error( "unknown error while parsing options\n" );
break;
default:
error( "unknown error while parsing options\n" );
break;
}
}
......
......@@ -119,6 +119,7 @@ int ring_parse_options( struct ring_params *params, int argc, char **argv )
else
error( "error parsing option %s with argument %s\n",
long_options[option_index].name, LALoptarg );
break;
case 'a': /* gps-start-time */
localparams.startTime.gpsSeconds = atol( LALoptarg );
break;
......@@ -302,10 +303,13 @@ int ring_parse_options( struct ring_params *params, int argc, char **argv )
case 'V': /* version */
XLALOutputVersionString(stderr, 0);
exit( 0 );
break;
case '?':
error( "unknown error while parsing options\n" );
break;
default:
error( "unknown error while parsing options\n" );
break;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment