SV04-Marlin-2.1.x
SV04-Marlin-2.1.x copied to clipboard
[BUG] Warnings when compiling in VSCode
Did you test the latest bugfix-2.1.x
code?
Yes, and the problem still exists.
Bug Description
I get these warnings with VSCode when I build, but NOT with other Marlin 2.1.x repos I build:
In file included from C:\Users\brigh\.platformio\packages\framework-arduinoststm32\cores\arduino/WString.h:29, from C:\Users\brigh\.platformio\packages\framework-arduinoststm32\cores\arduino/Print.h:27, from C:\Users\brigh\.platformio\packages\framework-arduinoststm32\cores\arduino/Stream.h:26, from C:\Users\brigh\.platformio\packages\framework-arduinoststm32\cores\arduino/HardwareSerial.h:29, from C:\Users\brigh\.platformio\packages\framework-arduinoststm32\cores\arduino/WSerial.h:5, from C:\Users\brigh\.platformio\packages\framework-arduinoststm32\cores\arduino/wiring.h:47, from C:\Users\brigh\.platformio\packages\framework-arduinoststm32\cores\arduino/Arduino.h:36, from Marlin\src\feature\../sd/../inc/../HAL/./STM32/../shared/Marduino.h:36, from Marlin\src\feature\../sd/../inc/../HAL/./STM32/HAL.h:28, from Marlin\src\feature\../sd/../inc/../HAL/HAL.h:30, from Marlin\src\feature\../sd/../inc/MarlinConfig.h:31, from Marlin\src\feature\../sd/cardreader.h:24, from Marlin\src\feature\powerloss.h:28, from Marlin\src\feature\powerloss.cpp:31: Marlin\src\feature\powerloss.cpp: In static member function 'static void PrintJobRecovery::resume()': Marlin\src\feature\powerloss.cpp:583:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 583 | gcode.process_subcommands_now(PSTR("G1 E3 F3000")); C:\Users\brigh\.platformio\packages\framework-arduinoststm32\cores\arduino/avr/pgmspace.h:30:20: note: in definition of macro 'PSTR' 30 | #define PSTR(str) (str) | ^~~ Marlin\src\feature\powerloss.cpp:588:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 588 | gcode.process_subcommands_now(PSTR("M605 S1")); C:\Users\brigh\.platformio\packages\framework-arduinoststm32\cores\arduino/avr/pgmspace.h:30:20: note: in definition of macro 'PSTR' 30 | #define PSTR(str) (str) | ^~~
Bug Timeline
new to me, but I just started using this repo
Expected behavior
do not expect to see warnings like this. Don't with other Marlin builds I run.
I'm far form an expert, so maybe/likely operator error.
Actual behavior
get these warnings
Steps to Reproduce
- Clone repo
- build
Version of Marlin Firmware
2.1.3.1b3
Printer model
Sovol SV04
Electronics
stock
Add-ons
none
Bed Leveling
ABL Bilinear mesh
Your Slicer
Cura
Host Software
None
Don't forget to include
- [X] A ZIP file containing your
Configuration.h
andConfiguration_adv.h
.
Additional information & file uploads
No response