As I have compiled ooRexx for all three platforms (temporarily available via my
Dropbox at
<https://www.dropbox.com/sh/olh1mqfwb4brp7r/AABI1X-Le9zDCJ0gyfvMdKB8a?dl=0>) I
was able to extract
the warnings the compilers issue on all three platforms, so here they are in a
simple and
single-e-mail form:
2018-12-04, rev. 11562
======================
//====================================================================================================\\
linux-compile-warnings
======================
rony@rony-linux:~/work/oorexx/trunk$ make
-------------------------------------------->
Scanning dependencies of target rexx
... cut ...
CMakeFiles/rexx.dir/interpreter/platform/unix/SysFileSystem.cpp.o: In
function `SysFileSystem::getTempFileName()':
SysFileSystem.cpp:(.text+0x3de): warning: the use of `tmpnam' is dangerous,
better use `mkstemp'
... cut ...
-------------------------------------------->
Scanning dependencies of target rexxutil
CMakeFiles/rexxutil.dir/extensions/rexxutil/platform/unix/rexxutil.cpp.o:
In function `SysTempFileName(char const*, unsigned long, _CONSTRXSTRING*, char
const*, _RXSTRING*)':
rexxutil.cpp:(.text+0x5c3b): warning: the use of `tempnam' is dangerous,
better use `mkstemp'
... cut ...
-------------------------------------------->
Scanning dependencies of target hostemu
... cut ...
[ 88%] Building CXX object
CMakeFiles/hostemu.dir/extensions/hostemu/cmdparse.cpp.o
..\..\cmdparse.cpp: In function ‘int yyparse()’:
..\..\cmdparse.cpp:1603:35: warning: deprecated conversion from string
constant to ‘char*’ [-Wwrite-strings]
..\..\cmdparse.cpp:1746:35: warning: deprecated conversion from string
constant to ‘char*’ [-Wwrite-strings]
//====================================================================================================\\
apple-compile-warnings
======================
wu114184:oorexx_build rony$ make
-------------------------------------------->
Scanning dependencies of target rexxapi
... cut ...
[ 9%] Building CXX object
CMakeFiles/rexxapi.dir/common/platform/unix/SysThread.cpp.o
/Users/rony/dev/oorexx_allura/main/trunk/common/platform/unix/SysThread.cpp:76:32:
warning: unknown warning group
'-Wreturn-local-addr', ignored [-Wunknown-warning-option]
#pragma GCC diagnostic ignored "-Wreturn-local-addr"
^
-------------------------------------------->
Scanning dependencies of target rexx
... cut ...
/Users/rony/dev/oorexx_allura/main/trunk/interpreter/platform/unix/SysActivity.cpp:140:32:
warning: unknown warning group
'-Wreturn-local-addr', ignored [-Wunknown-warning-option]
#pragma GCC diagnostic ignored "-Wreturn-local-addr"
^
[ 66%] Building CXX object
CMakeFiles/rexx.dir/interpreter/platform/unix/SysFileSystem.cpp.o
/Users/rony/dev/oorexx_allura/main/trunk/interpreter/platform/unix/SysFileSystem.cpp:174:12:
warning: 'tmpnam' is deprecated:
This function is provided for compatibility reasons only. Due to
security concerns inherent in the design of tmpnam(3),
it is highly recommended that you use mkstemp(3) instead.
[-Wdeprecated-declarations]
return tmpnam(NULL);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:186:1:
note:
'tmpnam' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.
Due to security concerns inherent in the ...
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
note:
expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
^
[ 70%] Building CXX object
CMakeFiles/rexx.dir/common/platform/unix/SysThread.cpp.o
/Users/rony/dev/oorexx_allura/main/trunk/common/platform/unix/SysThread.cpp:76:32:
warning: unknown warning group
'-Wreturn-local-addr', ignored [-Wunknown-warning-option]
#pragma GCC diagnostic ignored "-Wreturn-local-addr"
^
-------------------------------------------->
Scanning dependencies of target hostemu
... cut ...
[ 75%] Building CXX object
CMakeFiles/hostemu.dir/extensions/hostemu/cmdparse.cpp.o
..\..\cmdparse.cpp:1603:20: warning: ISO C++11 does not allow conversion
from string literal to 'char *' [-Wwritable-strings]
yyerror (YY_("syntax error"));
^
..\..\cmdparse.cpp:1746:16: warning: ISO C++11 does not allow conversion
from string literal to 'char *' [-Wwritable-strings]
yyerror (YY_("memory exhausted"));
^
-------------------------------------------->
Scanning dependencies of target rxapi
... cut ...
[ 84%] Building CXX object
CMakeFiles/rxapi.dir/common/platform/unix/SysThread.cpp.o
/Users/rony/dev/oorexx_allura/main/trunk/common/platform/unix/SysThread.cpp:76:32:
warning: unknown warning group
'-Wreturn-local-addr', ignored [-Wunknown-warning-option]
#pragma GCC diagnostic ignored "-Wreturn-local-addr"
^
-------------------------------------------->
Scanning dependencies of target rexxutil
[ 89%] Building CXX object
CMakeFiles/rexxutil.dir/extensions/rexxutil/platform/unix/rexxutil.cpp.o
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:1852:14:
warning: 'sem_init' is
deprecated [-Wdeprecated-declarations]
rc = sem_init(semdata->handle, 0, 0);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:55:42:
note:
'sem_init' has been explicitly marked deprecated here
int sem_init(sem_t *, int, unsigned int) __deprecated;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:37:
note:
expanded from macro '__deprecated'
#define __deprecated __attribute__((deprecated))
^
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:1913:5:
warning: 'sem_init' is
deprecated [-Wdeprecated-declarations]
sem_init(semdata->handle, 1, 0);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:55:42:
note:
'sem_init' has been explicitly marked deprecated here
int sem_init(sem_t *, int, unsigned int) __deprecated;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:37:
note:
expanded from macro '__deprecated'
#define __deprecated __attribute__((deprecated))
^
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:1957:13:
warning: 'sem_destroy' is
deprecated [-Wdeprecated-declarations]
if (sem_destroy(semdata->handle)) {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:53:26:
note:
'sem_destroy' has been explicitly marked deprecated here
int sem_destroy(sem_t *) __deprecated;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:37:
note:
expanded from macro '__deprecated'
#define __deprecated __attribute__((deprecated))
^
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:2054:14:
warning: 'sem_init' is
deprecated [-Wdeprecated-declarations]
rc = sem_init(semdata->handle, 0, 0);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:55:42:
note:
'sem_init' has been explicitly marked deprecated here
int sem_init(sem_t *, int, unsigned int) __deprecated;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:37:
note:
expanded from macro '__deprecated'
#define __deprecated __attribute__((deprecated))
^
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:2162:10:
warning: 'sem_getvalue' is
deprecated [-Wdeprecated-declarations]
rc = sem_getvalue(semdata->handle, &val);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:54:56:
note:
'sem_getvalue' has been explicitly marked deprecated here
int sem_getvalue(sem_t * __restrict, int * __restrict) __deprecated;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:37:
note:
expanded from macro '__deprecated'
#define __deprecated __attribute__((deprecated))
^
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:2198:13:
warning: 'sem_destroy' is
deprecated [-Wdeprecated-declarations]
if (sem_destroy(semdata->handle)) {
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/semaphore.h:53:26:
note:
'sem_destroy' has been explicitly marked deprecated here
int sem_destroy(sem_t *) __deprecated;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:176:37:
note:
expanded from macro '__deprecated'
#define __deprecated __attribute__((deprecated))
^
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3159:23:
warning: format specifies
type 'unsigned long' but the argument has type 'off_t' (aka 'long
long') [-Wformat]
finfo->st_size);
^~~~~~~~~~~~~~
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3171:27:
warning: format specifies
type 'unsigned long' but the argument has type 'off_t' (aka 'long
long') [-Wformat]
finfo->st_size);
^~~~~~~~~~~~~~
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3182:27:
warning: format specifies
type 'unsigned long' but the argument has type 'off_t' (aka 'long
long') [-Wformat]
finfo->st_size);
^~~~~~~~~~~~~~
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3693:15:
warning: 'tempnam' is
deprecated: This function is provided for compatibility reasons only.
Due to security concerns inherent in the design of
tempnam(3), it is highly recommended that you use mkstemp(3) instead.
[-Wdeprecated-declarations]
array = tempnam(NULL,file); /* call system routine */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:306:1:
note:
'tempnam' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.
Due to security concerns inherent in the ...
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
note:
expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
^
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3697:15:
warning: 'tempnam' is
deprecated: This function is provided for compatibility reasons only.
Due to security concerns inherent in the design of
tempnam(3), it is highly recommended that you use mkstemp(3) instead.
[-Wdeprecated-declarations]
array = tempnam("/",file); /* call system routine */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:306:1:
note:
'tempnam' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.
Due to security concerns inherent in the ...
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
note:
expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
^
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3701:15:
warning: 'tempnam' is
deprecated: This function is provided for compatibility reasons only.
Due to security concerns inherent in the design of
tempnam(3), it is highly recommended that you use mkstemp(3) instead.
[-Wdeprecated-declarations]
array = tempnam(NULL,file);/* call system routine */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:306:1:
note:
'tempnam' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.
Due to security concerns inherent in the ...
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
note:
expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
^
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:3708:13:
warning: 'tempnam' is
deprecated: This function is provided for compatibility reasons only.
Due to security concerns inherent in the design of
tempnam(3), it is highly recommended that you use mkstemp(3) instead.
[-Wdeprecated-declarations]
array = tempnam(dir,file);/* call system routine */
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:306:1:
note:
'tempnam' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.
Due to security concerns inherent in the ...
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
note:
expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
^
/Users/rony/dev/oorexx_allura/main/trunk/extensions/rexxutil/platform/unix/rexxutil.cpp:5468:33:
warning: 'tempnam' is
deprecated: This function is provided for compatibility reasons only.
Due to security concerns inherent in the design of
tempnam(3), it is highly recommended that you use mkstemp(3) instead.
[-Wdeprecated-declarations]
char *newFilename = tempnam(directory, NULL);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:306:1:
note:
'tempnam' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.
Due to security concerns inherent in the ...
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:180:48:
note:
expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
^
//====================================================================================================\\
windows-compile-warnings
========================
-------------------------------------------->
Scanning dependencies of target kill_rexxapi
... cut ...
[ 5%] Building CXX object
CMakeFiles/rexxapi.dir/common/platform/windows/SysThread.cpp.obj
SysThread.cpp
f:\work\svn\oorexx\main\trunk\common\platform\windows\systhread.cpp(123) :
warning C4172: returning address of local variable or temporary: temp
-------------------------------------------->
Scanning dependencies of target rexx
... cut ...
[ 54%] Building CXX object
CMakeFiles/rexx.dir/interpreter/platform/windows/SystemCommands.cpp.obj
SystemCommands.cpp
F:\work\svn\oorexx\main\trunk\interpreter\platform\windows\SystemCommands.cpp(540):
warning C4800: 'RexxObjectPtr': forcing value to bool 'true' or 'false'
(performance warning)
F:\work\svn\oorexx\main\trunk\interpreter\platform\windows\SystemCommands.cpp(557):
warning C4800: 'RexxObjectPtr': forcing value to bool 'true' or 'false'
(performance warning)
F:\work\svn\oorexx\main\trunk\interpreter\platform\windows\SystemCommands.cpp(574):
warning C4800: 'RexxObjectPtr': forcing value to bool 'true' or 'false'
(performance warning)
... cut ...
[ 56%] Building CXX object
CMakeFiles/rexx.dir/common/platform/windows/SysThread.cpp.obj
SysThread.cpp
f:\work\svn\oorexx\main\trunk\common\platform\windows\systhread.cpp(123) :
warning C4172: returning address of local variable or temporary: temp
-------------------------------------------->
Scanning dependencies of target rxwinsys
... cut ...
[ 69%] Building CXX object
CMakeFiles/rxwinsys.dir/extensions/platform/windows/rxwinsys/rxwinsys.cpp.obj
rxwinsys.cpp
F:\work\svn\oorexx\main\trunk\extensions\platform\windows\rxwinsys\rxwinsys.cpp(266):
warning C4996: 'GetVersionExA': was declared deprecated
C:\Program Files (x86)\Windows Kits\8.1\include\\um\sysinfoapi.h(433):
note: see declaration of 'GetVersionExA'
-------------------------------------------->
Scanning dependencies of target rexxutil
... cut ...
[ 70%] Building CXX object
CMakeFiles/rexxutil.dir/extensions/rexxutil/platform/windows/rexxutil.cpp.obj
rexxutil.cpp
F:\work\svn\oorexx\main\trunk\extensions\rexxutil\platform\windows\rexxutil.cpp(3544):
warning C4996: 'GetVersionExA': was declared deprecated
C:\Program Files (x86)\Windows Kits\8.1\include\\um\sysinfoapi.h(433):
note: see declaration of 'GetVersionExA'
F:\work\svn\oorexx\main\trunk\extensions\rexxutil\platform\windows\rexxutil.cpp(3593):
warning C4996: 'GetVersionExA': was declared deprecated
C:\Program Files (x86)\Windows Kits\8.1\include\\um\sysinfoapi.h(433):
note: see declaration of 'GetVersionExA'
F:\work\svn\oorexx\main\trunk\extensions\rexxutil\platform\windows\rexxutil.cpp(3631):
warning C4996: 'GetVersionExA': was declared deprecated
C:\Program Files (x86)\Windows Kits\8.1\include\\um\sysinfoapi.h(433):
note: see declaration of 'GetVersionExA'
-------------------------------------------->
Scanning dependencies of target orexxole
... cut ...
[ 71%] Building CXX object
CMakeFiles/orexxole.dir/extensions/platform/windows/ole/orexxole.cpp.obj
orexxole.cpp
F:\work\svn\oorexx\main\trunk\extensions\platform\windows\ole\orexxole.cpp(1770):
warning C4477: 'sprintf' : format string '%s' requires an argument of type
'char *', but variadic argument 2 has type 'void *'
F:\work\svn\oorexx\main\trunk\extensions\platform\windows\ole\orexxole.cpp(5020):
warning C4477: 'sscanf' : format string '%d' requires an argument of type 'int
*', but variadic argument 1 has type 'SHORT *'
F:\work\svn\oorexx\main\trunk\extensions\platform\windows\ole\orexxole.cpp(5020):
note: consider using '%hd' in the format string
-------------------------------------------->
Scanning dependencies of target oodialog_exe
... cut ...
[ 91%] Building CXX object
CMakeFiles/oodialog_exe.dir/extensions/platform/windows/oodialog/oodWinMain.cpp.obj
oodWinMain.cpp
F:\work\svn\oorexx\main\trunk\extensions\platform\windows\oodialog\oodWinMain.cpp(519):
warning C4996: 'GetVersionExA': was declared deprecated
C:\Program Files (x86)\Windows Kits\8.1\include\\um\sysinfoapi.h(433):
note: see declaration of 'GetVersionExA'
-------------------------------------------->
Scanning dependencies of target rexxexit
... cut ...
[ 94%] Building C object
samples/windows/api/rexxexit/CMakeFiles/rexxexit.dir/rexxexit.c.obj
rexxexit.c
F:\work\svn\oorexx\main\trunk\samples\windows\api\rexxexit\rexxexit.c(153):
warning C4013: 'gets' undefined; assuming extern returning int
---rony
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel