remove unreachable code warning, add const
This commit is contained in:
parent
871677e809
commit
f5b8de12b8
|
|
@ -1628,7 +1628,7 @@ char* outstorage(char* wordin, bool write)
|
||||||
An update occurs only every DELTATIME milliseconds. */
|
An update occurs only every DELTATIME milliseconds. */
|
||||||
#define DELTATIME 150
|
#define DELTATIME 150
|
||||||
void SetAnalyse(
|
void SetAnalyse(
|
||||||
char * Analyse, /*in: analysis type */
|
const char * Analyse, /*in: analysis type */
|
||||||
int DecaPercent /*in: 10 times the progress [%]*/
|
int DecaPercent /*in: 10 times the progress [%]*/
|
||||||
/*HWND hwAnalyse, in: global handle to analysis window */
|
/*HWND hwAnalyse, in: global handle to analysis window */
|
||||||
) {
|
) {
|
||||||
|
|
@ -1995,7 +1995,6 @@ getvsrcval(double time, char *vname)
|
||||||
if (!wantvdat) {
|
if (!wantvdat) {
|
||||||
fprintf(stderr, "Error: No callback supplied for source %s\n", vname);
|
fprintf(stderr, "Error: No callback supplied for source %s\n", vname);
|
||||||
shared_exit(EXIT_BAD);
|
shared_exit(EXIT_BAD);
|
||||||
return(EXIT_BAD);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* callback fcn */
|
/* callback fcn */
|
||||||
|
|
@ -2013,7 +2012,6 @@ getisrcval(double time, char *iname)
|
||||||
if (!wantidat) {
|
if (!wantidat) {
|
||||||
fprintf(stderr, "Error: No callback supplied for source %s\n", iname);
|
fprintf(stderr, "Error: No callback supplied for source %s\n", iname);
|
||||||
shared_exit(EXIT_BAD);
|
shared_exit(EXIT_BAD);
|
||||||
return(EXIT_BAD);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* callback fcn */
|
/* callback fcn */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue