#1 2021-09-26 18:03:07

radexpol
Member
From: Poland, Krk
Registered: 2019-11-29
Posts: 116

A lot of hints while using mORMot 2

[dcc32 Hint] mormot.core.unicode.pas(2437): H2443 Inline function 'Unicode_AnsiToWide' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.unicode.pas(6815): H2443 Inline function 'Unicode_CodePage' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.buffers.pas(8800): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.buffers.pas(8809): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.data.pas(3166): H2443 Inline function 'NewSynLocker' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.data.pas(3214): H2443 Inline function 'NewSynLocker' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.data.pas(9583): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.data.pas(9651): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.json.pas(5425): H2443 Inline function 'Unicode_CodePage' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.log.pas(2905): H2443 Inline function 'GetModuleHandle' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.log.pas(5245): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.threads.pas(1044): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.threads.pas(1268): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.threads.pas(1669): H2443 Inline function 'NewSynLocker' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.threads.pas(1794): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.threads.pas(1954): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.threads.pas(2015): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.threads.pas(2023): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.threads.pas(2115): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.threads.pas(2199): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.core.threads.pas(2201): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.crypt.secure.pas(2170): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.rest.core.pas(2947): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.orm.client.pas(648): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.rest.client.pas(1772): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.rest.client.pas(2092): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.rest.client.pas(2281): H2443 Inline function 'PostMessage' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.rest.client.pas(2869): H2443 Inline function 'LibraryOpen' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.rest.client.pas(2879): H2443 Inline function 'LibraryClose' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.rest.client.pas(2899): H2443 Inline function 'LibraryClose' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.soa.client.pas(444): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.soa.client.pas(912): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.orm.server.pas(1388): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.soa.server.pas(2123): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list
[dcc32 Hint] mormot.rest.server.pas(6254): H2443 Inline function 'SleepHiRes' has not been expanded because unit 'Winapi.Windows' is not specified in USES list

Those hints are the only one I'm getting while compiling huge project. I'm trying to have clean code out of any hints. I can fix that hints myself by adding required uses, but next mORMot update will override my changes.

Offline

#2 2021-09-26 22:03:20

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

Re: A lot of hints while using mORMot 2

Please do not post such huge code / compiler log in the forums, as stated by the forum rules.

Which compiler are you using?

Are you sure you have the latest revision of mORMot 2 source code?
Some of the hints clearly states that your source code is old: for SleepHiRes() is not inlined at all.

Online

#3 2021-09-27 04:34:04

sakura
Member
From: Germany
Registered: 2018-02-21
Posts: 223
Website

Re: A lot of hints while using mORMot 2

FYI: Delphi 11 does not show any warnings.

Offline

#4 2021-09-27 14:37:25

radexpol
Member
From: Poland, Krk
Registered: 2019-11-29
Posts: 116

Re: A lot of hints while using mORMot 2

I'm using 10.4, updated mORMot now ("enhanced and optimized RTTI values comparison")

@sakura, Clean before Build to see those errors.

Offline

#5 2021-09-27 15:13:23

sakura
Member
From: Germany
Registered: 2018-02-21
Posts: 223
Website

Re: A lot of hints while using mORMot 2

radexpol wrote:

@sakura, Clean before Build to see those errors.

Believe me when I write, I always do ;-)
Actually, one of my pre-build scripts does.

Regards,
Daniel

P.S.: I did a manual clean too, same results. No Hints whatsoever.

Last edited by sakura (2021-09-27 15:18:13)

Offline

#6 2021-09-27 20:39:21

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

Re: A lot of hints while using mORMot 2

My guess is that you are compiling an older revision somewhere in your path.

***** mORMot 2 integration using Delphi 10.4.2 Sidney for Win32 *****
Embarcadero Delphi for Win32 compiler version 34.0
Copyright (c) 1983,2021 Embarcadero Technologies, Inc.
364745 lines, 1.84 seconds, 5611384 bytes code, 302972 bytes data.

Online

#7 2021-10-08 11:25:24

sakura
Member
From: Germany
Registered: 2018-02-21
Posts: 223
Website

Re: A lot of hints while using mORMot 2

Did you do 64-Bit? I just got a ton of messages there....

Here a list of compiler messages on Delphi 11, when compiling for 64 Bits, Windows:
https://pastebin.com/czS8b46C

Regards,
Daniel

Offline

#8 2021-10-08 12:25:39

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

Re: A lot of hints while using mORMot 2

Those hints are a known regression of Delphi 10.4.2 (and up) on Win64.
They changed their linker, but it introduced those false hints.
There is a RSP but they marked it as "to be fixed" in a next release.

Online

#9 2021-10-08 12:29:39

sakura
Member
From: Germany
Registered: 2018-02-21
Posts: 223
Website

Re: A lot of hints while using mORMot 2

ab wrote:

There is a RSP but they marked it as "to be fixed" in a next release.

Thanks, do you have the RSP-ID available?

Thanks,
Daniel

Offline

#10 2021-10-08 12:39:27

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

Re: A lot of hints while using mORMot 2

Online

Board footer

Powered by FluxBB