error BSS_end marlin

I need your help, i try to modify a marlin and i have this error when i compile.

sketch\SdFatUtil.cpp:29:13: warning: type of '__bss_end' does not match original declaration

 extern int  __bss_end;


sketch\Marlin_main.cpp:292:23: note: previously declared here

   extern unsigned int __bss_end;


For information, i use :
arduino ide 1.8.5

Can you give me your help to fix this error.

i think it's nothing but i prefer verify with the community.
thank you for your help.

The obvious fix would be to change line 292 of Marlin_main.cpp from:

extern unsigned int __bss_end;


extern int __bss_end;

to match the declaration in SdFatUtil.cpp, or vice versa. Without looking at the code I can't say what side effects either change might have. It's probably safer to ignore the warning. Generally I just try to keep my own code free of warnings and don't worry too much about those in other people's code unless I'm interested in contributing the fixes back to their project. If you're using an older version of Marlin it's possible this has been fixed since, or you could look through the pull requests in the repository to see if a fix has been proposed but not yet merged.

Note that this is not an error, it's a warning. It's a good idea to pay attention to warnings but some can be safely ignored. An error will prevent compilation so they can't be ignored.

I try your modification and this warming disapear.
Thank you very much for your help, and for your quickly answers.

:slight_smile: :slight_smile: