From 6315177191201acc8abd81315150388676b0aa59 Mon Sep 17 00:00:00 2001 From: Matt Robinson Date: Wed, 29 Jan 2014 20:10:32 +0000 Subject: [PATCH] Reorder HardwareSerial init to fix compiler warn Switch the tx and rx buffer head/tail entries in the HardwareSerial initialisation list so that they match the order the fields are defined in. This fixes a compiler warning (repeated for each of the HardwareSerial source files the header is used in). --- hardware/arduino/avr/cores/arduino/HardwareSerial_private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/arduino/avr/cores/arduino/HardwareSerial_private.h b/hardware/arduino/avr/cores/arduino/HardwareSerial_private.h index c0f631f80d..d3e29c6061 100644 --- a/hardware/arduino/avr/cores/arduino/HardwareSerial_private.h +++ b/hardware/arduino/avr/cores/arduino/HardwareSerial_private.h @@ -63,8 +63,8 @@ HardwareSerial::HardwareSerial( _ubrrh(ubrrh), _ubrrl(ubrrl), _ucsra(ucsra), _ucsrb(ucsrb), _ucsrc(ucsrc), _udr(udr), - _tx_buffer_head(0), _tx_buffer_tail(0), - _rx_buffer_head(0), _rx_buffer_tail(0) + _rx_buffer_head(0), _rx_buffer_tail(0), + _tx_buffer_head(0), _tx_buffer_tail(0) { }