From e2f1dde0df4f30db742b586b221134ebb184a9f7 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 2 Jul 2017 03:03:39 -0700 Subject: [PATCH] Remove unused variable from StringAdditionOperator example - Avoids confusing beginners who assume there must be some reason for this useless line of code. - Fixes "warning: unused variable 'currentTime'" compiler warning. Closes https://github.com/arduino/Arduino/issues/693 --- .../08.Strings/StringAdditionOperator/StringAdditionOperator.ino | 1 - 1 file changed, 1 deletion(-) diff --git a/build/shared/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino b/build/shared/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino index a11e5036c52..7e56b975d15 100644 --- a/build/shared/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino +++ b/build/shared/examples/08.Strings/StringAdditionOperator/StringAdditionOperator.ino @@ -58,7 +58,6 @@ void loop() { Serial.println(stringThree); // prints "Sensor Value: 401" or whatever value analogRead(A0) has // adding a variable long integer to a string: - long currentTime = millis(); stringOne = "millis() value: "; stringThree = stringOne + millis(); Serial.println(stringThree); // prints "The millis: 345345" or whatever value currentTime has