EPCIS 3.15 compilation warnings removed

This commit is contained in:
Matej Sekoranja
2014-11-26 11:09:11 +01:00
parent b29c8f439b
commit e67e8153ef
7 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);