From ca0f99283db052748f3d6d92a2d48818c820cc5c Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Mon, 11 May 2009 18:00:34 +0000 Subject: [Author: dmaclach] Add required cast to have GTMTestTimer compile correctly. We weren't casting a value coming back from calloc as the correct type which was causing issues when you compiled with strict C++ on. DELTA=1 (0 added, 0 deleted, 1 changed) R=thomasvl --- UnitTesting/GTMTestTimer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'UnitTesting/GTMTestTimer.h') diff --git a/UnitTesting/GTMTestTimer.h b/UnitTesting/GTMTestTimer.h index 6c5fc55..1b5b9dc 100644 --- a/UnitTesting/GTMTestTimer.h +++ b/UnitTesting/GTMTestTimer.h @@ -38,7 +38,7 @@ typedef struct { // Create a test timer GTM_INLINE GTMTestTimer *GTMTestTimerCreate(void) { - GTMTestTimer *t = calloc(sizeof(GTMTestTimer), 1); + GTMTestTimer *t = (GTMTestTimer *)calloc(sizeof(GTMTestTimer), 1); if (t) { if (mach_timebase_info(&t->time_base_info_) == KERN_SUCCESS) { t->retainCount_ = 1; -- cgit v1.2.3