Prevent warning when watchdog is disabled.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 12 Apr 2005 01:37:17 +0000 (01:37 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 12 Apr 2005 01:37:17 +0000 (01:37 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@407 38d2e660-2303-0410-9eaa-f027e97ec537

drv/wdt.h

index a0982950f0c4b621a4c2b5eb0af62bf99d15262b..730fa585d84c6daf2673aadb636293ae8e33e2e4 100755 (executable)
--- 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 */
 }