From dca50737f5f2b8af8482376349dbabf140506131 Mon Sep 17 00:00:00 2001 From: Josef Pavlik Date: Thu, 13 Oct 2016 18:16:46 +0200 Subject: [PATCH] fixed warning: ISO C++ forbids compound-literals --- Marlin/buzzer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Marlin/buzzer.h b/Marlin/buzzer.h index 199d64e41..944187530 100644 --- a/Marlin/buzzer.h +++ b/Marlin/buzzer.h @@ -109,7 +109,8 @@ class Buzzer { this->tick(); thermalManager.manage_heater(); } - this->buffer.enqueue((tone_t) { duration, frequency }); + tone_t tone = { duration, frequency }; + this->buffer.enqueue(tone); } /**