Yes, I got this warning too. It is caused by the if loops which are used to spawn other items than the block item, e.g. a destroyed redstone block will not drop a redstone block, but redstone dust.
If you know how to fix this error, help me

As far as I know, I need to convert the integers to uint8_t, but how can I fill a variable with uint8_t instead of int?
But, even if I think that this errors should be fixed, the code works like it should; every block which should not drop itself, but an item, does this.
thegk01