From 4c8a8a2d5b8b607e003a57ecc38abcec8459c261 Mon Sep 17 00:00:00 2001
From: Matt Robinson <git@nerdoftheherd.com>
Date: Wed, 29 Jan 2014 20:10:32 +0000
Subject: 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).
---
 cores/arduino/HardwareSerial_private.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cores/arduino/HardwareSerial_private.h b/cores/arduino/HardwareSerial_private.h
index c0f631f..d3e29c6 100644
--- a/cores/arduino/HardwareSerial_private.h
+++ b/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)
 {
 }
 
-- 
cgit v1.2.3-18-g5258