ICU-12028 Compiler warning cleanup.

X-SVN-Rev: 38116
This commit is contained in:
Andy Heninger 2015-12-09 02:11:07 +00:00
parent ea597d89d1
commit 18450a9957
3 changed files with 6 additions and 0 deletions

View File

@ -2204,6 +2204,7 @@ uprv_dlsym_func(void *lib, const char* sym, UErrorCode *status) {
U_INTERNAL void * U_EXPORT2
uprv_dl_open(const char *libName, UErrorCode *status) {
(void)libName;
if(U_FAILURE(*status)) return NULL;
*status = U_UNSUPPORTED_ERROR;
return NULL;
@ -2211,6 +2212,7 @@ uprv_dl_open(const char *libName, UErrorCode *status) {
U_INTERNAL void U_EXPORT2
uprv_dl_close(void *lib, UErrorCode *status) {
(void)lib;
if(U_FAILURE(*status)) return;
*status = U_UNSUPPORTED_ERROR;
return;
@ -2219,6 +2221,8 @@ uprv_dl_close(void *lib, UErrorCode *status) {
U_INTERNAL UVoidFunction* U_EXPORT2
uprv_dlsym_func(void *lib, const char* sym, UErrorCode *status) {
(void)lib;
(void)sym;
if(U_SUCCESS(*status)) {
*status = U_UNSUPPORTED_ERROR;
}

View File

@ -26,6 +26,7 @@ SharedObject::addRef(UBool fromWithinCache) const {
// cache global mutex is locked. In this way, we can be rest assured
// that data races can't happen if the cache performs some task if
// the hardRefCount is zero while the global cache mutex is locked.
(void)fromWithinCache; // Suppress unused variable warning in non-debug builds.
U_ASSERT(fromWithinCache);
cachePtr->incrementItemsInUse();
}

View File

@ -2729,6 +2729,7 @@ void NumberFormatRegressionTest::TestJ691(void) {
{ \
char _msg[1000]; \
int32_t len = sprintf (_msg,"File %s, line %d: Assertion Failed: " #x "==" #y "\n", __FILE__, __LINE__); \
(void)len; \
U_ASSERT(len < (int32_t) sizeof(_msg)); \
assertEquals((const char*) _msg, x,y); \
}