emmebrusa / TSDZ2-Smart-EBike-1

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

Some errors during compiling procedure #72

Open Barell69 opened 1 year ago

Barell69 commented 1 year 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 1 year ago

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

Barell69 commented 1 year ago

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

dzid26 commented 1 year 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 1 year 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 1 year 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 1 year 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