From: bernie Date: Tue, 12 Apr 2005 01:37:17 +0000 (+0000) Subject: Prevent warning when watchdog is disabled. X-Git-Tag: 1.0.0~834 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=6fbd98c855b44d0cc2832cff664e082496529cc9;p=bertos.git Prevent warning when watchdog is disabled. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@407 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/drv/wdt.h b/drv/wdt.h index a0982950..730fa585 100755 --- a/drv/wdt.h +++ b/drv/wdt.h @@ -14,6 +14,9 @@ /*#* *#* $Log$ + *#* Revision 1.4 2005/04/12 01:37:17 bernie + *#* Prevent warning when watchdog is disabled. + *#* *#* Revision 1.3 2005/04/11 19:10:28 bernie *#* Include top-level headers from cfg/ subdir. *#* @@ -74,6 +77,8 @@ INLINE void wdt_init(uint8_t timeout) #else #error unknown CPU #endif +#else + (void)timeout; #endif /* CONFIG_WATCHDOG */ }