summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Hornsey <hornseyf@objectcomputing.com>2018-12-04 18:25:39 -0600
committerFred Hornsey <hornseyf@objectcomputing.com>2018-12-04 18:25:39 -0600
commit26afdcc05de17f3675aa214cdbeadea8d174faf6 (patch)
treee4ebe9e11062c81846b01525f8824a70f1bcd5f2
parentee5e5763132fc3341a914728548120cc9fce8483 (diff)
downloadATCD-26afdcc05de17f3675aa214cdbeadea8d174faf6.tar.gz
tao_idl: Fix argument
-rw-r--r--TAO/TAO_IDL/driver/drv_args.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/TAO/TAO_IDL/driver/drv_args.cpp b/TAO/TAO_IDL/driver/drv_args.cpp
index 5a5377f7849..1f81a9f6c11 100644
--- a/TAO/TAO_IDL/driver/drv_args.cpp
+++ b/TAO/TAO_IDL/driver/drv_args.cpp
@@ -664,22 +664,22 @@ process_long_option(long ac, char **av, long &i)
else
{
i++;
- if (!ACE_OS::strcmp (long_option, "warn-once"))
+ if (!ACE_OS::strcmp (av[i], "warn-once"))
{
idl_global->unknown_annotations_ =
IDL_GlobalData::UNKNOWN_ANNOTATIONS_WARN_ONCE;
}
- else if (!ACE_OS::strcmp (long_option, "warn-all"))
+ else if (!ACE_OS::strcmp (av[i], "warn-all"))
{
idl_global->unknown_annotations_ =
IDL_GlobalData::UNKNOWN_ANNOTATIONS_WARN_ALL;
}
- else if (!ACE_OS::strcmp (long_option, "error"))
+ else if (!ACE_OS::strcmp (av[i], "error"))
{
idl_global->unknown_annotations_ =
IDL_GlobalData::UNKNOWN_ANNOTATIONS_ERROR;
}
- else if (!ACE_OS::strcmp (long_option, "ignore"))
+ else if (!ACE_OS::strcmp (av[i], "ignore"))
{
idl_global->unknown_annotations_ =
IDL_GlobalData::UNKNOWN_ANNOTATIONS_IGNORE;