You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6439 Reporter:@johnwhitington Assigned to:@mshinwell Status: closed (set by @xavierleroy on 2015-12-11T18:27:44Z) Resolution: fixed Priority: normal Severity: minor Platform: Mac OS: OS X OS Version: 10.9.2 Target version: 4.02.0+dev Fixed in version: 4.02.0+dev Category: ~DO NOT USE (was: OCaml general)
Bug description
I'm not qualified to know if these matter or not, but I report them for completeness. Note that "gcc" is clang here.
I've committed a change to use sysconf(_SC_PAGESIZE) rather than getpagesize(), the latter of which has I think been removed entirely as of POSIX.1-2001. Seems ok on x86-64 Linux and Mac OS X.
Original bug ID: 6439
Reporter: @johnwhitington
Assigned to: @mshinwell
Status: closed (set by @xavierleroy on 2015-12-11T18:27:44Z)
Resolution: fixed
Priority: normal
Severity: minor
Platform: Mac
OS: OS X
OS Version: 10.9.2
Target version: 4.02.0+dev
Fixed in version: 4.02.0+dev
Category: ~DO NOT USE (was: OCaml general)
Bug description
I'm not qualified to know if these matter or not, but I report them for completeness. Note that "gcc" is clang here.
gcc -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o backtrace.o backtrace.c
backtrace.c:294:20: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
for(j--; j >= 0; j--)
~ ^ ~
1 warning generated.
gcc -c -DCAML_NAME_SPACE -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT backtrace.pic.c
backtrace.pic.c:294:20: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
for(j--; j >= 0; j--)
~ ^ ~
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../../byterun -O -I../unix -DIN_OCAML_BIGARRAY -DCAML_NAME_SPACE -c mmap_unix.c
mmap_unix.c:156:10: warning: 'getpagesize' is deprecated [-Wdeprecated-declarations]
page = getpagesize();
^
/usr/include/unistd.h:556:6: note: 'getpagesize' declared here
int getpagesize(void) __pure2 __POSIX_C_DEPRECATED(199506L);
^
mmap_unix.c:192:18: warning: 'getpagesize' is deprecated [-Wdeprecated-declarations]
uintnat page = getpagesize();
^
/usr/include/unistd.h:556:6: note: 'getpagesize' declared here
int getpagesize(void) __pure2 __POSIX_C_DEPRECATED(199506L);
^
2 warnings generated.
The text was updated successfully, but these errors were encountered: