ZakKemble / avr-gcc-build

https://blog.zakkemble.net/avr-gcc-builds/
51 stars 10 forks source link

small issue in delay.h #4

Open nicoverduin opened 1 year ago

nicoverduin commented 1 year ago

I tested the latest avr-gcc compiler here at the University of Applied Sciences in Amsterdam. We always attempt :) to compile without any warnings as all are then treated as errors.

In de the function _delay_us(double __us) in delay.h I get a warning (and thus an error) on line 279 that
uint8_t __ticks; is unitialized.

Changing this line into uint8_t __ticks = 0;

Solved it.

My Euro 0.02 :)

armandas commented 7 months ago

This belongs to avrlibc.

sprintersb commented 2 months ago

@nicoverduin You have a test case, or AVR-LibC issue number?