ICU-12028 Compiler warning cleanup.
X-SVN-Rev: 38116
This commit is contained in:
parent
ea597d89d1
commit
18450a9957
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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); \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user