From 77b0a932afd4a8daa291307ec150e3567c4d72ed Mon Sep 17 00:00:00 2001 From: Christian Starkjohann Date: Sun, 30 May 2010 21:00:26 +0000 Subject: - added __attribute__((noreturn)) to all main() functions --- examples/custom-class/firmware/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/custom-class/firmware') diff --git a/examples/custom-class/firmware/main.c b/examples/custom-class/firmware/main.c index 22c1e60..b11c245 100644 --- a/examples/custom-class/firmware/main.c +++ b/examples/custom-class/firmware/main.c @@ -62,7 +62,7 @@ static uchar dataBuffer[4]; /* buffer must stay valid when usbFunctionSetup /* ------------------------------------------------------------------------- */ -int main(void) +int __attribute__((noreturn)) main(void) { uchar i; @@ -92,7 +92,6 @@ uchar i; wdt_reset(); usbPoll(); } - return 0; } /* ------------------------------------------------------------------------- */ -- cgit v1.2.3