ICU-3500 Fix some compiler warnings
X-SVN-Rev: 15641
This commit is contained in:
parent
6107521e50
commit
9c27017ae7
@ -129,12 +129,12 @@ main(int argc,
|
|||||||
|
|
||||||
/* Month and year specified */
|
/* Month and year specified */
|
||||||
if(argc - optind == 2) {
|
if(argc - optind == 2) {
|
||||||
sscanf(argv[optind], "%d", &month);
|
sscanf(argv[optind], "%d", (int*)&month);
|
||||||
sscanf(argv[optind + 1], "%d", &year);
|
sscanf(argv[optind + 1], "%d", (int*)&year);
|
||||||
|
|
||||||
/* Make sure the month value is legal */
|
/* Make sure the month value is legal */
|
||||||
if(month < 0 || month > 12) {
|
if(month < 0 || month > 12) {
|
||||||
printf("icucal: Bad value for month -- %d\n", month);
|
printf("icucal: Bad value for month -- %d\n", (int)month);
|
||||||
|
|
||||||
/* Display usage */
|
/* Display usage */
|
||||||
printUsage = 1;
|
printUsage = 1;
|
||||||
@ -145,7 +145,7 @@ main(int argc,
|
|||||||
}
|
}
|
||||||
/* Only year specified */
|
/* Only year specified */
|
||||||
else {
|
else {
|
||||||
sscanf(argv[optind], "%d", &year);
|
sscanf(argv[optind], "%d", (int*)&year);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user