cloudius-systems / osv

OSv, a new operating system for the cloud.
osv.io
Other
4.12k stars 605 forks source link

Fix pointer cast #1214

Closed gohar94 closed 1 year ago

gohar94 commented 1 year ago

On g++ 11.3.0 (Ubuntu), the following error was being thrown: error: pointer of type ‘void *’ used in arithmetic

wkozaczuk commented 1 year ago

Hi,

Could you please provide the full build command which fails? I can run ./scripts/build -j$(nproc) image=native-example on Ubuntu with GCC 11.3.0 and I do not get this error. The OSv makefile explicitly adds -Wno-pointer-arith to make a pointer to void and treat it as a pointer to char.