#1 2016-12-13 10:45:17

Daniel
Member
Registered: 2016-12-08
Posts: 23

Compiler warnings with D2007

[DCC Warning] SynCommons.pas(56189): W1035 Return value of function 'TSynTableFieldProperties.GetValue' might be undefined
[DCC Warning] mORMot.pas(26808): W1035 Return value of function 'TJSONObjectDecoder.EncodeAsSQLPrepared' might be undefined

Offline

#2 2016-12-13 11:06:04

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,270
Website

Re: Compiler warnings with D2007

Yes, those are warnings shown only for D2007, which are false positives.

This is why we didn't fix them, since there is no real harm associated.

Offline

#3 2016-12-13 11:23:40

Daniel
Member
Registered: 2016-12-08
Posts: 23

Re: Compiler warnings with D2007

Could it be possible to add IFDEF to get rid of the warnings ? Our build system fails on warnings.

Offline

#4 2016-12-13 11:52:18

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,270
Website

Re: Compiler warnings with D2007

Offline

#5 2016-12-13 12:04:01

Daniel
Member
Registered: 2016-12-08
Posts: 23

Re: Compiler warnings with D2007

Yep, that fixed the SynCommons.pas, thanks !

But not the mORMot.pas:

[DCC Warning] mORMot.pas(26912): W1035 Return value of function 'TJSONObjectDecoder.EncodeAsSQLPrepared' might be undefined

Offline

#6 2016-12-13 15:55:32

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,270
Website

Re: Compiler warnings with D2007

That's weird, my Delphi 2007 compiler does not show this warning in mORMot.pas...

Please check http://synopse.info/fossil/info/4ea40bbc62

Offline

#7 2016-12-13 23:44:34

Daniel
Member
Registered: 2016-12-08
Posts: 23

Re: Compiler warnings with D2007

Indeed, all gone now, thanks smile

Offline

Board footer

Powered by FluxBB