Re: warning: Negative offset for 'variable'
2020/11/30 12:48:10
(permalink)
In one of the compiler release notes this is mentioned that this warning appears "too often."
What i noted was I had declared storage for a global array. In the header module, I declared this as "extern" and duplicated the array size. This did some odd things - seems it did not properly allocate the storage and was overridden by something else (my guess).
What I did to fix it was removed the size of the array in the header file so it just said, "extern int variable[]" while the global declaration said, "int variable[14]".