EPCIS 3.15 compilation warnings removed
This commit is contained in:
@ -1473,7 +1473,7 @@ int main (int argc, char *argv[])
|
||||
usage();
|
||||
return 0;
|
||||
case 'w': /* Set PVA timeout value */
|
||||
if(epicsScanDouble(optarg, &timeOut) != 1)
|
||||
if((epicsScanDouble(optarg, &timeOut)) != 1 || timeOut <= 0.0)
|
||||
{
|
||||
fprintf(stderr, "'%s' is not a valid timeout value "
|
||||
"- ignored. ('eget -h' for help.)\n", optarg);
|
||||
|
@ -384,7 +384,7 @@ int main (int argc, char *argv[])
|
||||
usage();
|
||||
return 0;
|
||||
case 'w': /* Set PVA timeout value */
|
||||
if(epicsScanDouble(optarg, &timeOut) != 1 || timeOut <= 0.0)
|
||||
if((epicsScanDouble(optarg, &timeOut)) != 1 || timeOut <= 0.0)
|
||||
{
|
||||
fprintf(stderr, "'%s' is not a valid timeout value "
|
||||
"- ignored. ('pvget -h' for help.)\n", optarg);
|
||||
|
@ -71,7 +71,7 @@ int main (int argc, char *argv[])
|
||||
usage();
|
||||
return 0;
|
||||
case 'w': /* Set PVA timeout value */
|
||||
if(epicsScanDouble(optarg, &timeOut) != 1 || timeOut <= 0.0)
|
||||
if((epicsScanDouble(optarg, &timeOut)) != 1 || timeOut <= 0.0)
|
||||
{
|
||||
fprintf(stderr, "'%s' is not a valid timeout value "
|
||||
"- ignored. ('pvget -h' for help.)\n", optarg);
|
||||
|
@ -498,7 +498,7 @@ int main (int argc, char *argv[])
|
||||
usage();
|
||||
return 0;
|
||||
case 'w': /* Set PVA timeout value */
|
||||
if(epicsScanDouble(optarg, &timeOut) != 1 || timeOut <= 0.0)
|
||||
if((epicsScanDouble(optarg, &timeOut)) != 1 || timeOut <= 0.0)
|
||||
{
|
||||
fprintf(stderr, "'%s' is not a valid timeout value "
|
||||
"- ignored. ('pvlist -h' for help.)\n", optarg);
|
||||
|
@ -548,7 +548,7 @@ int main (int argc, char *argv[])
|
||||
usage();
|
||||
return 0;
|
||||
case 'w': /* Set PVA timeout value */
|
||||
if(epicsScanDouble(optarg, &timeOut) != 1)
|
||||
if((epicsScanDouble(optarg, &timeOut)) != 1 || timeOut <= 0.0)
|
||||
{
|
||||
fprintf(stderr, "'%s' is not a valid timeout value "
|
||||
"- ignored. ('pvput -h' for help.)\n", optarg);
|
||||
|
@ -400,7 +400,7 @@ int main (int argc, char *argv[])
|
||||
usage();
|
||||
return 0;
|
||||
case 'w': // Set PVA timeout value
|
||||
if(epicsScanDouble(optarg, &timeOut) != 1)
|
||||
if((epicsScanDouble(optarg, &timeOut)) != 1)
|
||||
{
|
||||
fprintf(stderr, "'%s' is not a valid timeout value "
|
||||
"- ignored. ('cainfo -h' for help.)\n", optarg);
|
||||
|
@ -380,7 +380,7 @@ int main (int argc, char *argv[])
|
||||
usage();
|
||||
return 0;
|
||||
case 'w': // Set PVA timeout value
|
||||
if(epicsScanDouble(optarg, &timeOut) != 1)
|
||||
if((epicsScanDouble(optarg, &timeOut)) != 1)
|
||||
{
|
||||
fprintf(stderr, "'%s' is not a valid timeout value "
|
||||
"- ignored. ('cainfo -h' for help.)\n", optarg);
|
||||
|
Reference in New Issue
Block a user