From e19c2c4a5f1b162c0665fa99473c1946440aa4da Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Tue, 22 Jan 2008 07:12:05 +0000 Subject: [PATCH] Suppress the divide-by-zero warning for package validation of MdeModulePkg. The APIs in this library should not be invoked by real platforms. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4608 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c b/MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c index 85b52bda19..cc27953dbf 100644 --- a/MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c +++ b/MdePkg/Library/BaseTimerLibNullTemplate/TimerLibNull.c @@ -112,5 +112,6 @@ GetPerformanceCounterProperties ( ) { ASSERT (FALSE); - return 0; + + return (UINT64)(-1); }