[Oorexx-devel] Ad 4.2.0 compilation warnings using Xcode (MacOSX, compatible from OS X 10.6 onwards)

2014-03-17 Thread Rony G. Flatscher
While compiling 4.2.0 for MacOSX in 32- and 64-bit, there are quite a few 
warnings that get
generated, some examples (from the 64-bit compilation) e.g.

  * RexxDateTime.cpp:1142:27: sprintf: 'int', but the argument is 
'wholenumber_t' [-Wformat]
  * DeadObject.cpp:221:03: printf: 'int', but the argument is 'size_t' 
[-Wformat]
  * RexxMemory.cpp:1238:16: destination for this 'memcpy' call is a pointer to 
dynamic class
'RexxObject'; vtable pointer will be overwritten 
(-Wdynamice-class-memaccess]
  * SysActivity.cpp:166:21: address of stack memory associated with local 
variable 'temp' returned
[-Wreturn-stack-address]
  * SysFileSystem:223:10: 'stat64' is deprecated: first deprecated in OS X 10.6
[-Wdeprecated-declarations]
  * StreamNative.cpp:3069:26: use of logical '' with constant operand 
[-Wconstant-logical-operand]
  * LocalRegistrationManager.cpp:359:14: case value not in enumerated type 
'ErrorCode' [-Wswitch]
  * hostemu.cpp:329:31: equality comparison with extraneous parentheses 
[-Wparentheses-equality]
  * cmparse.cpp:1618:20: conversion from string literal to 'char *' is 
deprecated
[-Wdeprecated-writable-strings]
  * APIServer.cpp:194:13: expression result unused [-Wunused-value]
  * rexx.cpp:97.37: format string is not a string literal (potentially 
insecure) [-Wformat-security]

If these warnings (total of approx. 200 warnings, many related to s|printf type 
usages, f|stat64)
are of interest I could upload the warnings to SourceForge. Please advise.

---rony

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Ad 4.2.0 compilation warnings using Xcode (MacOSX, compatible from OS X 10.6 onwards)

2014-03-17 Thread Rick McGuire
The StreamNative warning is actually a bug, so it would probably be
worthwhile to see the entire set of warnings.  These will only be fixed in
trunk.

Rick


On Mon, Mar 17, 2014 at 9:20 AM, Rony G. Flatscher
rony.flatsc...@wu.ac.atwrote:

  While compiling 4.2.0 for MacOSX in 32- and 64-bit, there are quite a few
 warnings that get generated, some examples (from the 64-bit compilation)
 e.g.

- RexxDateTime.cpp:1142:27: sprintf: 'int', but the argument is
'wholenumber_t' [-Wformat]
- DeadObject.cpp:221:03: printf: 'int', but the argument is 'size_t'
[-Wformat]
- RexxMemory.cpp:1238:16: destination for this 'memcpy' call is a
pointer to dynamic class 'RexxObject'; vtable pointer will be overwritten
(-Wdynamice-class-memaccess]
- SysActivity.cpp:166:21: address of stack memory associated with
local variable 'temp' returned [-Wreturn-stack-address]
- SysFileSystem:223:10: 'stat64' is deprecated: first deprecated in OS
X 10.6 [-Wdeprecated-declarations]
- StreamNative.cpp:3069:26: use of logical '' with constant operand
[-Wconstant-logical-operand]
- LocalRegistrationManager.cpp:359:14: case value not in enumerated
type 'ErrorCode' [-Wswitch]
- hostemu.cpp:329:31: equality comparison with extraneous parentheses
[-Wparentheses-equality]
- cmparse.cpp:1618:20: conversion from string literal to 'char *' is
deprecated [-Wdeprecated-writable-strings]
- APIServer.cpp:194:13: expression result unused [-Wunused-value]
- rexx.cpp:97.37: format string is not a string literal (potentially
insecure) [-Wformat-security]

 If these warnings (total of approx. 200 warnings, many related to s|printf
 type usages, f|stat64) are of interest I could upload the warnings to
 SourceForge. Please advise.

 ---rony


 --
 Learn Graph Databases - Download FREE O'Reilly Book
 Graph Databases is the definitive new guide to graph databases and their
 applications. Written by three acclaimed leaders in the field,
 this first edition is now available. Download your free book today!
 http://p.sf.net/sfu/13534_NeoTech
 ___
 Oorexx-devel mailing list
 Oorexx-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/oorexx-devel


--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Ad 4.2.0 compilation warnings using Xcode (MacOSX, compatible from OS X 10.6 onwards)

2014-03-17 Thread Rony G. Flatscher
On 17.03.2014 14:34, Rick McGuire wrote:
 The StreamNative warning is actually a bug, so it would probably be 
 worthwhile to see the entire
 set of warnings.  These will only be fixed in trunk.
OK, uploaded them as an attachment to 
https://sourceforge.net/p/oorexx/bugs/1250/.

---rony



 On Mon, Mar 17, 2014 at 9:20 AM, Rony G. Flatscher rony.flatsc...@wu.ac.at
 mailto:rony.flatsc...@wu.ac.at wrote:

 While compiling 4.2.0 for MacOSX in 32- and 64-bit, there are quite a few 
 warnings that get
 generated, some examples (from the 64-bit compilation) e.g.

   * RexxDateTime.cpp:1142:27: sprintf: 'int', but the argument is 
 'wholenumber_t' [-Wformat]
   * DeadObject.cpp:221:03: printf: 'int', but the argument is 'size_t' 
 [-Wformat]
   * RexxMemory.cpp:1238:16: destination for this 'memcpy' call is a 
 pointer to dynamic class
 'RexxObject'; vtable pointer will be overwritten 
 (-Wdynamice-class-memaccess]
   * SysActivity.cpp:166:21: address of stack memory associated with local 
 variable 'temp'
 returned [-Wreturn-stack-address]
   * SysFileSystem:223:10: 'stat64' is deprecated: first deprecated in OS 
 X 10.6
 [-Wdeprecated-declarations]
   * StreamNative.cpp:3069:26: use of logical '' with constant operand
 [-Wconstant-logical-operand]
   * LocalRegistrationManager.cpp:359:14: case value not in enumerated 
 type 'ErrorCode' [-Wswitch]
   * hostemu.cpp:329:31: equality comparison with extraneous parentheses 
 [-Wparentheses-equality]
   * cmparse.cpp:1618:20: conversion from string literal to 'char *' is 
 deprecated
 [-Wdeprecated-writable-strings]
   * APIServer.cpp:194:13: expression result unused [-Wunused-value]
   * rexx.cpp:97.37: format string is not a string literal (potentially 
 insecure)
 [-Wformat-security]

 If these warnings (total of approx. 200 warnings, many related to 
 s|printf type usages,
 f|stat64) are of interest I could upload the warnings to SourceForge. 
 Please advise.

 ---rony


--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel