theunreplicated / stressapptest

Automatically exported from code.google.com/p/stressapptest
Apache License 2.0
0 stars 0 forks source link

fix shmat() call in os.cc (use 0, not NULL) #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the 3rd arg to shmat() is an integer, not a pointer.  the current os.cc file 
does:
      shmaddr = shmat(shmid, NULL, NULL);

which triggers a warning on recent Linux/glibc systems:
os.cc:416:44: warning: passing NULL to non-pointer argument 3 of ‘void* 
shmat(int, const void*, int)’ [-Wconversion-null]

simply change the 3rd arg to 0

Original issue reported on code.google.com by vapier@gmail.com on 27 Nov 2012 at 6:58

GoogleCodeExporter commented 9 years ago
Fixed some time ago.

Original comment by nick.j.s...@gmail.com on 11 Feb 2014 at 7:36