When compiling a source file which includes wdm.h from this project using GCC 7.3, it warns about:
km/wdm.h: In function ‘IoGetRemainingStackSize’:
km/wdm.h: function returns address of local variable [-Wreturn-local-addr]
return((ULONG_PTR)(&Top) - Bottom );
According to msdn, it should return Top - Bottom instead of &Top - Bottom.
When compiling a source file which includes wdm.h from this project using GCC 7.3, it warns about:
According to msdn, it should return
Top - Bottominstead of&Top - Bottom.