Re: argument conflicts prototype and signed to unsigned int errors
The ide doesn’t report the error, the compiler does. The function argument needs a type and it must match the prototype (that you haven’t shown).
The rest are just warnings and likely can be ignored. You can eliminate them by judicious use of casting and/or “u” or “uL” suffixes on constants. I assume WriteRegister (which you didn’t show us) wants an unsigned type and you’ve passed a signed long result.