Jump to content


Photo

compiler warnings


  • Please log in to reply
3 replies to this topic

#1 Lothar

Lothar
  • Members
  • 16 posts

Posted 18 January 2019 - 05:28 PM

Hi Boki,

 

with the NextGrid (We use NextGrid and NextDbGrid) we get a lot of compiler warnings. Then it's difficult to focus on new warnings.

 

Are you going to clear these?

 

kind regards,

Lothar

 

 

As an excample hier are some (in german)

 

[dcc32 Warnung] NxEdit6.pas(392): W1010 Methode 'GetCaretPos' verbirgt virtuelle Methode vom Basistyp 'TCustomMemo'
[dcc32 Warnung] NxEdit6.pas(393): W1010 Methode 'SetCaretPos' verbirgt virtuelle Methode vom Basistyp 'TCustomMemo'
[dcc32 Warnung] NxEdit6.pas(1219): W1010 Methode 'GetCaretPos' verbirgt virtuelle Methode vom Basistyp 'TCustomRichEdit'
[dcc32 Warnung] NxEdit6.pas(1220): W1010 Methode 'SetCaretPos' verbirgt virtuelle Methode vom Basistyp 'TCustomRichEdit'
[dcc32 Warnung] NxEdit6.pas(4393): W1050 WideChar in Set-Ausdrücken auf ByteChar verkürzt.  Ziehen Sie die Verwendung der Funktion 'CharInSet' aus der Unit 'SysUtils' in Betracht.
[dcc32 Warnung] NxHTML6.pas(1063): W1035 Rückgabewert der Funktion 'AddToStack' könnte undefiniert sein
[dcc32 Hinweis] NxCells6.pas(3190): H2077 Auf 'CompareResult' zugewiesener Wert wird niemals benutzt
[dcc32 Hinweis] NxColumnViewClasses6.pas(2221): H2077 Auf 'ARow' zugewiesener Wert wird niemals benutzt
[dcc32 Warnung] NxGridView6.pas(2038): W1035 Rückgabewert der Funktion 'TNxGridView6.GetItemAtPos' könnte undefiniert sein
[dcc32 Hinweis] NxGridView6.pas(4346): H2077 Auf 'Bottom' zugewiesener Wert wird niemals benutzt
[dcc32 Hinweis] NxGridView6.pas(4343): H2077 Auf 'Bottom' zugewiesener Wert wird niemals benutzt
[dcc32 Hinweis] NxColumns6.pas(874): H2219 Das private-Symbol 'FStyleTextEvent' wurde deklariert, aber nie verwendet
[dcc32 Warnung] NxGrid6.pas(1017): W1036 Variable 'Match' ist möglicherweise nicht initialisiert worden
[dcc32 Warnung] NxDBCells6.pas(783): W1035 Rückgabewert der Funktion 'TNxRecordRow6.ChildsShown' könnte undefiniert sein
[dcc32 Hinweis] NxDBCells6.pas(187): H2219 Das private-Symbol 'FValue' wurde deklariert, aber nie verwendet
[dcc32 Hinweis] NxDBGrid6.pas(110): H2269 Durch das Überschreiben erhält die virtuelle Methode 'TNxDBCellSource6.Clear' eine geringere Sichtbarkeit (protected) als die Basisklasse 'TNxDBRecordList' (public)
[dcc32 Warnung] NxDBGrid6.pas(1586): W1020 Instanz von 'TNxDBMultiSelectCellSource6' mit der abstrakten Methode 'TNxSortableObject.DoCellCompare' wird angelegt
 



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 18 January 2019 - 09:12 PM

Hello Lothar,

I will do my best to remove them.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 DelphiToday

DelphiToday
  • Members
  • 146 posts
  • Gender:Male

Posted 19 January 2019 - 03:21 PM

You can disable compiler Warning / Hints when you add these two compiler directives in 'NxSuite6.inc'.

It's only disable NextSuite Warnings and Hints. It's a start and it works for me. :)

 

{$HINTS OFF}
{$WARNINGS OFF}

{ ------------------------------------------------------------- }
{ Purpose : Next Suite 6                                        }
{ By      : Bojan Nikolic                                       }
{ For     : BergSoft                                            }
{ ------------------------------------------------------------- }
{ Copyright © BergSoft.net 2011. All Rights Reserved.         }
{ ------------------------------------------------------------- }
 

...

 

Regards,

Eduard.



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 11 March 2019 - 08:20 PM

Hi,

 

I have removed warnings and hints in the latest version.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users