summaryrefslogtreecommitdiff
path: root/ace/OS.cpp
diff options
context:
space:
mode:
authorChris Cleeland <chris.cleeland@gmail.com>1997-07-29 20:58:43 +0000
committerChris Cleeland <chris.cleeland@gmail.com>1997-07-29 20:58:43 +0000
commit486f4e4ce769150ab3a1a781be4214121f442304 (patch)
tree45e8b92f0b614031e53000802754d68c03ae027e /ace/OS.cpp
parent4dbfd42a63ca2dd1408b18ddefd578c8b874624a (diff)
downloadATCD-486f4e4ce769150ab3a1a781be4214121f442304.tar.gz
Clean build with -Wall on Linux, now!
Diffstat (limited to 'ace/OS.cpp')
-rw-r--r--ace/OS.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/ace/OS.cpp b/ace/OS.cpp
index 144cbbfee06..eaeb843e036 100644
--- a/ace/OS.cpp
+++ b/ace/OS.cpp
@@ -208,6 +208,11 @@ ACE_OS::gethrtime (void)
//
// This function can't be inline because it depends on the location
// of the following variables on the stack.
+ //
+ // Moreover, the GCC compiler with -Wall will flag these as
+ // potentially being used without being initialized, but the
+ // assembly code insures that they ARE initialized. So, that
+ // warning can be ignored.
unsigned long least, most;
asm ("rdtsc");
@@ -1344,6 +1349,8 @@ ACE_OS::thr_create (ACE_THR_FUNC func,
# endif /* ACE_HAS_SETKIND_NP */
return -1;
}
+# else
+ ACE_UNUSED_ARG (size);
# endif /* !ACE_LACKS_THREAD_STACK_SIZE */
}
@@ -1361,6 +1368,8 @@ ACE_OS::thr_create (ACE_THR_FUNC func,
return -1;
}
}
+# else
+ ACE_UNUSED_ARG (stack);
# endif /* !ACE_LACKS_THREAD_STACK_ADDR */