emmebrusa / TSDZ2-Smart-EBike-1

TSDZ2 Open Source Firmware adapted to VLCD5-VLCD6-XH18 displays
GNU General Public License v3.0
131 stars 35 forks source link

Some errors during compiling procedure #72

Open Barell69 opened 11 months ago

Barell69 commented 11 months ago

Hello guys, I get some ebike_app errors during flashing, can me someone help with this potenciall issue ? The flashing procedure afterwards runs ok, but I am not sure, if all parameters are flashed properly. many thanks

Clipboard01

emmebrusa commented 11 months ago

These are warnings that shouldn't cause any problems. What operating system are you using? And what SDCC version?

Barell69 commented 11 months ago

Hi, W10/11, SDCC the latest one -- sdcc-4.3.0-x64.

dzid26 commented 11 months ago

Confirmed with 4.3.2.

Adding void in empty function arguments removes the warning. https://stackoverflow.com/a/47693 image

Btw, I wonder if different SDCC releases produce different binaries.

Barell69 commented 11 months ago

okey :)

In which file should I make this change - ebike_app.c ? After overwriting all static void's still two messages alive :)

image

Barell69 commented 11 months ago

I have overwritten also this two lines with "void" and now I am without all errors

uint16_t read_battery_soc(void); uint16_t read_battery_soc(void)

I hope all these changes don't have any impact to the programming process! Many thanks guys !

chgpalmer commented 10 months ago

It won't make any difference to the resulting binary in this case, but yes in C this: void foo(); Means foo can take any number of arguments

If you have a patch for this already I suggest creating a PR