[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suppressing -Wall warnings on 4.0.0



These patches might be a little out-of-date, but I'm sending them on
the off chance that they aren't.

-Philip


--------------AF958FDD64A2DDCA1D70E8AD
Content-Type: text/plain; charset=us-ascii;
 name="patches"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patches"

Index: rtems/c/src/exec/posix/src/mutex.c
===================================================================
RCS file: /zembu/cvsfiles/devo/rtems/c/src/exec/posix/src/mutex.c,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 mutex.c
*** mutex.c	1999/06/01 18:30:14	1.1.1.2
--- mutex.c	1999/11/29 21:10:11
***************
*** 223,230 ****
--- 223,232 ----
    CORE_mutex_Attributes        *the_mutex_attr;
    const pthread_mutexattr_t    *the_attr;
    CORE_mutex_Disciplines        the_discipline;
+ #if 0
    register POSIX_Mutex_Control *mutex_in_use;
    Objects_Locations             location;
+ #endif
  
    if ( attr ) the_attr = attr;
    else        the_attr = &_POSIX_Mutex_Default_attributes;
Index: rtems/c/src/exec/score/cpu/i386/cpu.c
===================================================================
RCS file: /zembu/cvsfiles/devo/rtems/c/src/exec/score/cpu/i386/cpu.c,v
retrieving revision 1.4
diff -c -r1.4 cpu.c
*** cpu.c	1999/06/01 21:28:47	1.4
--- cpu.c	1999/11/29 21:10:13
***************
*** 14,19 ****
--- 14,20 ----
   */
  
  #include <rtems/system.h>
+ #include <rtems/rtems/tasks.h>
  #include <rtems/score/isr.h>
  #include <bspIo.h>
  #include <rtems/score/thread.h>
Index: rtems/c/src/exec/score/cpu/i386/wrap/Makefile.in
===================================================================
RCS file: /zembu/cvsfiles/devo/rtems/c/src/exec/score/cpu/i386/wrap/Makefile.in,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 Makefile.in
*** Makefile.in	1999/06/01 18:30:20	1.1.1.1
--- Makefile.in	1999/11/29 21:10:13
***************
*** 48,54 ****
  #
  
  DEFINES  +=
! CPPFLAGS += -I$(srcdir)/..
  CFLAGS   += $(CFLAGS_OS_V)
  
  LD_PATHS  +=
--- 48,55 ----
  #
  
  DEFINES  +=
! CPPFLAGS += -I$(srcdir)/.. -I$(top_srcdir)/c/src/exec/rtems/include \
! 	    -I$(top_srcdir)/c/src/exec/rtems/inline
  CFLAGS   += $(CFLAGS_OS_V)
  
  LD_PATHS  +=
Index: rtems/c/src/lib/libbsp/i386/pc386/3c509/3c509.c
===================================================================
RCS file: /zembu/cvsfiles/devo/rtems/c/src/lib/libbsp/i386/pc386/3c509/3c509.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 3c509.c
*** 3c509.c	1999/06/01 18:30:57	1.1.1.1
--- 3c509.c	1999/11/29 21:10:20
***************
*** 387,393 ****
   **********************************************************************************/
  static __inline unsigned char inb( unsigned short io_addr )
  {
!   unsigned short in_data;
    inport_byte( io_addr, in_data );
    return in_data;
  }
--- 387,393 ----
   **********************************************************************************/
  static __inline unsigned char inb( unsigned short io_addr )
  {
!   unsigned char in_data;
    inport_byte( io_addr, in_data );
    return in_data;
  }
Index: rtems/c/src/lib/libbsp/i386/pc386/console/console.c
===================================================================
RCS file: /zembu/cvsfiles/devo/rtems/c/src/lib/libbsp/i386/pc386/console/console.c,v
retrieving revision 1.2
diff -c -r1.2 console.c
*** console.c	1999/10/29 02:31:33	1.2
--- console.c	1999/11/29 21:10:21
***************
*** 68,74 ****
  /*-------------------------------------------------------------------------+
  | External Prototypes
  +--------------------------------------------------------------------------*/
! extern void _IBMPC_keyboard_isr(void);
  extern rtems_boolean _IBMPC_scankey(char *);  /* defined in 'inch.c' */
  extern char BSP_wait_polled_input(void);
  extern void _IBMPC_initVideo(void);
--- 68,74 ----
  /*-------------------------------------------------------------------------+
  | External Prototypes
  +--------------------------------------------------------------------------*/
! extern void _IBMPC_keyboard_isr(rtems_vector_number);
  extern rtems_boolean _IBMPC_scankey(char *);  /* defined in 'inch.c' */
  extern char BSP_wait_polled_input(void);
  extern void _IBMPC_initVideo(void);
Index: rtems/c/src/lib/libbsp/i386/pc386/ne2000/ne2000.c
===================================================================
RCS file: /zembu/cvsfiles/devo/rtems/c/src/lib/libbsp/i386/pc386/ne2000/ne2000.c,v
retrieving revision 1.2
diff -c -r1.2 ne2000.c
*** ne2000.c	1999/06/01 21:29:13	1.2
--- ne2000.c	1999/11/29 21:10:23
***************
*** 184,189 ****
--- 184,194 ----
  
  static struct ne_softc ne_softc[NNEDRIVER];
  
+ /* Forward declarations to avoid warnings */
+ 
+ static void ne_stop (struct ne_softc *sc);
+ static void ne_init (void *arg);
+ 
  /* Find the NE2000 device which is attached at a particular interrupt
     vector.  */
  
Index: rtems/c/src/lib/libbsp/i386/pc386/tools/binpatch.c
===================================================================
RCS file: /zembu/cvsfiles/devo/rtems/c/src/lib/libbsp/i386/pc386/tools/binpatch.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 binpatch.c
*** binpatch.c	1998/08/21 05:15:41	1.1.1.1
--- binpatch.c	1999/11/29 21:10:29
***************
*** 5,10 ****
--- 5,11 ----
  
  #include <stdio.h>
  #include <stdlib.h>
+ #include <getopt.h>
  
  /*
   * This function will patch binary file
Index: rtems/c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c
===================================================================
RCS file: /zembu/cvsfiles/devo/rtems/c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c,v
retrieving revision 1.3
diff -c -r1.3 i386-stub-glue.c
*** i386-stub-glue.c	1998/10/21 23:02:35	1.3
--- i386-stub-glue.c	1999/11/29 21:10:33
***************
*** 21,26 ****
--- 21,28 ----
  /* assign an exception handler */
  void exceptionHandler(int, void (*handler)(void));   
  
+ void BSP_loop(int uart);
+ 
  
  /* Current uart used by gdb stub */
  static int uart_current = 0;
Index: rtems/c/src/lib/libbsp/i386/shared/comm/uart.c
===================================================================
RCS file: /zembu/cvsfiles/devo/rtems/c/src/lib/libbsp/i386/shared/comm/uart.c,v
retrieving revision 1.6
diff -c -r1.6 uart.c
*** uart.c	1999/11/11 02:05:13	1.6
--- uart.c	1999/11/29 21:10:34
***************
*** 33,47 ****
  static inline unsigned char
  uread(int uart, unsigned int reg)
  {
    register unsigned char val;
  
    if(uart == 0)
      {
!       i386_inport_byte(COM1_BASE_IO+reg, val);
      }
    else
      {
!       i386_inport_byte(COM2_BASE_IO+reg, val);
      }
  
    return val;
--- 33,47 ----
  static inline unsigned char
  uread(int uart, unsigned int reg)
  {
!   register unsigned char val;
  
    if(uart == 0)
      {
!       inport_byte(COM1_BASE_IO+reg, val);
      }
    else
      {
!       inport_byte(COM2_BASE_IO+reg, val);
      }
  
    return val;
***************
*** 52,62 ****
  {
    if(uart == 0)
      {
!       i386_outport_byte(COM1_BASE_IO+reg, val);
      } 
    else
      {
!       i386_outport_byte(COM2_BASE_IO+reg, val);
      }
  }
  
--- 52,62 ----
  {
    if(uart == 0)
      {
!       outport_byte(COM1_BASE_IO+reg, val);
      } 
    else
      {
!       outport_byte(COM2_BASE_IO+reg, val);
      }
  }
  
***************
*** 114,120 ****
  
      scratch = uread (uart, IER);
      uwrite (uart, IER, 0);
!     i386_outport_byte (0x80, 0xff);
      scratch2 = uread (uart, IER);
      uwrite (uart, IER, scratch);
      if (scratch2)
--- 114,120 ----
  
      scratch = uread (uart, IER);
      uwrite (uart, IER, 0);
!     outport_byte (0x80, 0xff);
      scratch2 = uread (uart, IER);
      uwrite (uart, IER, scratch);
      if (scratch2)
Index: rtems/c/src/lib/libc/getcwd.c
===================================================================
RCS file: /zembu/cvsfiles/devo/rtems/c/src/lib/libc/getcwd.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 getcwd.c
*** getcwd.c	1999/06/01 18:30:38	1.1.1.1
--- getcwd.c	1999/11/29 21:10:41
***************
*** 64,70 ****
  
  #define	ISDOT(dp) \
  	(dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \
! 	    dp->d_name[1] == '.' && dp->d_name[2] == '\0'))
  
  #ifndef _REENT_ONLY
  
--- 64,70 ----
  
  #define	ISDOT(dp) \
  	(dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \
! 	    (dp->d_name[1] == '.' && dp->d_name[2] == '\0')))
  
  #ifndef _REENT_ONLY
  
Index: rtems/c/src/lib/libcpu/i386/displayCpu.c
===================================================================
RCS file: /zembu/cvsfiles/devo/rtems/c/src/lib/libcpu/i386/displayCpu.c,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 displayCpu.c
*** displayCpu.c	1998/09/29 22:18:10	1.1.1.2
--- displayCpu.c	1999/11/29 21:10:41
***************
*** 19,24 ****
--- 19,25 ----
  #include <libcpu/cpu.h>
  #include <string.h>
  #include <libcpu/cpuModel.h>
+ #include <bsp.h>
  #include <bspIo.h>
  
  unsigned char Cx86_step = 0;
***************
*** 67,73 ****
  	}
  
  	/* We must get the stepping number by reading DIR1 */
! 	i386_outport_byte(0x22,0xff) ; i386_inport_byte(0x23, x86_mask);
  	switch (x86_mask) {
  		case 0x03:
  			Cx86_step =  1;	/* 6x86MX Rev 1.3 */
--- 68,74 ----
  	}
  
  	/* We must get the stepping number by reading DIR1 */
! 	outport_byte(0x22,0xff) ; inport_byte(0x23, x86_mask);
  	switch (x86_mask) {
  		case 0x03:
  			Cx86_step =  1;	/* 6x86MX Rev 1.3 */
Index: rtems/c/src/tests/samples/minimum/Makefile.in
===================================================================
RCS file: /zembu/cvsfiles/devo/rtems/c/src/tests/samples/minimum/Makefile.in,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 Makefile.in
*** Makefile.in	1999/06/01 18:33:35	1.1.1.1
--- Makefile.in	1999/11/29 21:10:54
***************
*** 63,69 ****
  CLOBBER_ADDITIONS +=
  
  all:	${ARCH} $(SRCS) $(PGM)
! 	# This test shuld not be executed
  
  ${PGM}: $(OBJS) $(LINK_FILES)
  	$(make-exe)
--- 63,69 ----
  CLOBBER_ADDITIONS +=
  
  all:	${ARCH} $(SRCS) $(PGM)
! 	# This test should not be executed
  
  ${PGM}: $(OBJS) $(LINK_FILES)
  	$(make-exe)

--------------AF958FDD64A2DDCA1D70E8AD--