ghkweon / dwscript

Automatically exported from code.google.com/p/dwscript
0 stars 0 forks source link

Warning when building runtime package with D2010; revision 2306 #443

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When building the runtime package with Delphi 2010:

[DCC Warning] dwsLibRuntime.dpk(87): W1033 Unit 'dwsResultFunctions' implicitly 
imported into package 'dwsLibRuntime'

Original issue reported on code.google.com by ain.val...@gmail.com on 29 Sep 2013 at 2:43

GoogleCodeExporter commented 8 years ago
BTW, same warning for designtime package too:
[DCC Warning] dwsLibDesignOnly.dpk(90): W1033 Unit 'dwsResultFunctions' 
implicitly imported into package 'dwsLibDesignOnly'

Original comment by ain.val...@gmail.com on 29 Sep 2013 at 2:45

GoogleCodeExporter commented 8 years ago
With revision 2326

Building dwsLibRuntime.dproj (Debug configuration)
[DCC Warning] dwsLibRuntime.dpk(87): W1033 Unit 'dwsResultFunctions' implicitly 
imported into package 'dwsLibRuntime'
[DCC Warning] dwsLibRuntime.dpk(87): W1029 Duplicate constructor 
'TAutoStrings.CreateClone' with identical parameters will be inacessible from 
C++
[DCC Warning] W1029 Duplicate constructor 'TAutoStrings.CreateClone' with 
identical parameters will be inacessible from C++

Original comment by ain.val...@gmail.com on 12 Nov 2013 at 4:21

GoogleCodeExporter commented 8 years ago
In general it should be possible to hide the latter warning with:

{$WARN DUPLICATE_CTOR_DTOR OFF}

However, it doesn't seem to be working as expected (still showing the warning)

Even disabling this warning globally doesn't seem to make a difference. At 
least not with Delphi XE2.

Original comment by CWBudde on 7 Aug 2014 at 9:30

GoogleCodeExporter commented 8 years ago
Adding this directive to the dproj file worked in D2010, ie

package dwsLibRuntime;
...
{$RUNONLY}
{$IMPLICITBUILD OFF}
{$WARN DUPLICATE_CTOR_DTOR OFF}

requires
  vcl,
  rtl;
...

and it compiles without warnings. Adding it at the top of the dwsUtils unit 
(where the TAutoStrings is defined) doesn't work (still get warning). It is 
known issue, see http://qc.embarcadero.com/wc/qcmain.aspx?d=100815

Original comment by ain.val...@gmail.com on 7 Aug 2014 at 1:18