From 1ff385c21492aac01d71c2af07aefe6c167e67d9 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 8 Mar 2006 18:55:45 +0000 Subject: 2006-03-08 Joel Sherrill PR 761/rtems * score/src/threadhandler.c: Add volatile cast so test is weak function is present will do something. Otherwise, it can be assume by gcc to always be a true condition. --- cpukit/score/src/threadhandler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/score/src/threadhandler.c') diff --git a/cpukit/score/src/threadhandler.c b/cpukit/score/src/threadhandler.c index c5ff9c03af..c6cf23e660 100644 --- a/cpukit/score/src/threadhandler.c +++ b/cpukit/score/src/threadhandler.c @@ -113,7 +113,7 @@ void _Thread_Handler( void ) _Thread_Enable_dispatch(); #if defined(__USE_INIT_FINI__) - if (!doneCons && _init) + if (!doneCons && (volatile void *)_init) _init (); #endif #if defined(__USE__MAIN__) -- cgit v1.2.3