/*
****************************************************************************
- * Copyright (c) 1997-2007, International Business Machines Corporation and *
+ * Copyright (c) 1997-2013, International Business Machines Corporation and *
* others. All Rights Reserved. *
****************************************************************************
*/
UErrorCode status = U_ZERO_ERROR;
result = utmscale_fromInt64(0, -1, &status);
+ (void)result; /* Suppress set but not used warning. */
if (status != U_ILLEGAL_ARGUMENT_ERROR) {
log_err("utmscale_fromInt64(0, -1, status) did not set status to U_ILLEGAL_ARGUMENT_ERROR.\n");
}
UErrorCode status = U_ZERO_ERROR;
result = utmscale_toInt64(0, -1, &status);
+ (void)result; /* suppress set but not used warning. */
if (status != U_ILLEGAL_ARGUMENT_ERROR) {
log_err("utmscale_toInt64(0, -1, &status) did not generate U_ILLEGAL_ARGUMENT_ERROR.\n");
}
cal = ucal_open(utc, -1, "", UCAL_GREGORIAN, &errorCode);
ucal_setGregorianChange(cal, -1000000 * (dayMillis * (UDate)1), &errorCode);
if(U_FAILURE(errorCode)) {
- log_err("ucal_open(UTC/proleptic Gregorian) failed: %s\n", u_errorName(errorCode));
+ log_data_err("ucal_open(UTC/proleptic Gregorian) failed: %s - (Are you missing data?)\n", u_errorName(errorCode));
ucal_close(cal);
return;
}