From ffe316d5267c5e7ce99685be45efc9308b041dc6 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 2 Dec 1996 22:50:33 +0000 Subject: Suggested changes from Mark Jordan which eliminate warnings and errors he received using the Microtec C++ compiler. Most of these are either missing casts from/to (void *), heavy handed use of enumerated types, or simply assumed conversions. There is at least one actual bug in an error path in thread.c in which the wrong argument was passed to _Thread_Stack_Free and was not being caught by gcc. --- cpukit/rtems/src/intr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/rtems/src/intr.c') diff --git a/cpukit/rtems/src/intr.c b/cpukit/rtems/src/intr.c index 8ec880ee99..c2da423986 100644 --- a/cpukit/rtems/src/intr.c +++ b/cpukit/rtems/src/intr.c @@ -55,7 +55,7 @@ rtems_status_code rtems_interrupt_catch( if ( !_ISR_Is_vector_number_valid( vector ) ) return RTEMS_INVALID_NUMBER; - if ( !_ISR_Is_valid_user_handler( new_isr_handler ) ) + if ( !_ISR_Is_valid_user_handler( (void *) new_isr_handler ) ) return RTEMS_INVALID_ADDRESS; _ISR_Install_vector( -- cgit v1.2.3