Warnings on platformIO
Closed this issue · 1 comments
Hi Bodubrow
I am back after a long time. These days I am trying to have The CNC I, made years ago, working.
The main problems I had are concerning Spindle and play, now I shall try to use a stepper as spindle to have a speed regulation. The idea is to update the old program but i was not able to reach the end on platformio. I think it would be of help to have some instructions on what to do with the folder "Gerber".
OK i solved the problem using arduino and than importing the project on platformio. Result: for arduino is OK but platformio was giving the warnings I report to you. Then Platformio was ending the compilation with success
Paolo
src\eeprom.c: In function 'memcpy_to_eeprom_with_checksum':
src\eeprom.c:134:26: warning: '<<' in boolean context, did you mean '<' ? [-Wint-in-bool-context]
checksum = (checksum << 1) || (checksum >> 7);
~~~~~~~~~~^~~~~
src\eeprom.c: In function 'memcpy_from_eeprom_with_checksum':
src\eeprom.c:148:26: warning: '<<' in boolean context, did you mean '<' ? [-Wint-in-bool-context]
checksum = (checksum << 1) || (checksum >> 7);
~~~~~~~~~~^~~~~
src\UISupport.cpp: In function 'uint8_t UIExecuteGCode(char*, uint8_t)':
src\UISupport.cpp:103:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
In file included from src\grbl.h:75:0,
from C:/Users/gsrad/Documents/Lavori_con_Platform/CNC_NEW_V300823/src/grbl.ino:25:
src\DriverUtilities.h:25:0: warning: "bitWrite" redefined
#define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : bitClear(value, bit))
In file included from C:\Users\gsrad\AppData\Local\Temp\tmp9eeg7inh:1:0:
C:\Users\gsrad.platformio\packages\framework-arduino-avr\cores\arduino/Arduino.h:115:0: note: this is the location of the previous definition
#define bitWrite(value, bit, bitvalue) ((bitvalue) ? bitSet(value, bit) : bitClear(value, bit))
It seems to be a problem of platformio complier !!!