Author Topic: Warning messages by compiling  (Read 12863 times)

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Warning messages by compiling
« on: October 09, 2013, 04:51:21 PM »
Hi,
I have to make some changes in a program from another people.
But there are a lot of warnings. I don't know what to do.
May I search for the reasons for this warnings? It will take a lot of time!
Here the warnings:


Compiling DP600T.c
DP600T.c: In function '_FNC_123_b':
DP600T.c:15258: warning: comparison is always false due to limited range of data type
DP600T.c:15296: warning: comparison is always false due to limited range of data type
DP600T.c:15318: warning: large integer implicitly truncated to unsigned type
DP600T.c:15379: warning: comparison is always false due to limited range of data type
DP600T.c:15390: warning: comparison is always false due to limited range of data type
DP600T.c:15401: warning: comparison is always false due to limited range of data type
DP600T.c:15755: warning: comparison is always false due to limited range of data type
DP600T.c:15927: warning: comparison is always false due to limited range of data type
DP600T.c:15949: warning: comparison is always false due to limited range of data type
DP600T.c:16021: warning: comparison is always false due to limited range of data type
DP600T.c:16180: warning: comparison is always false due to limited range of data type
DP600T.c:16202: warning: comparison is always false due to limited range of data type
DP600T.c:16264: warning: comparison is always false due to limited range of data type
DP600T.c:16468: warning: comparison is always false due to limited range of data type
DP600T.c:16490: warning: comparison is always false due to limited range of data type
DP600T.c:16626: warning: comparison is always false due to limited range of data type
DP600T.c:16867: warning: comparison is always false due to limited range of data type
DP600T.c: In function '_FNC_123_d':
DP600T.c:18562: warning: comparison is always false due to limited range of data type
DP600T.c:18563: warning: comparison is always false due to limited range of data type
DP600T.c:18568: warning: comparison is always false due to limited range of data type
DP600T.c: In function '_FNC_123_e':
DP600T.c:21601: warning: this decimal constant is unsigned only in ISO C90
DP600T.c:21850: warning: this decimal constant is unsigned only in ISO C90
DP600T.c: In function '_FNC_123_f':
DP600T.c:23342: warning: this decimal constant is unsigned only in ISO C90
DP600T.c:23591: warning: this decimal constant is unsigned only in ISO C90
DP600T.c: In function '_FNC_123_g':
DP600T.c:27552: warning: comparison is always false due to limited range of data type
DP600T.c: In function '_FNC_123_h':
DP600T.c:28181: warning: comparison is always false due to limited range of data type
DP600T.c:28319: warning: comparison is always false due to limited range of data type
DP600T.c:28800: warning: this decimal constant is unsigned only in ISO C90
DP600T.c:28820: warning: this decimal constant is unsigned only in ISO C90
DP600T.c:30184: warning: comparison is always false due to limited range of data type
DP600T.c: In function '_FNC_123_i':
DP600T.c:31295: warning: comparison is always false due to limited range of data type
DP600T.c:31300: warning: comparison is always false due to limited range of data type
DP600T.c:31450: warning: comparison is always false due to limited range of data type
DP600T.c:31813: warning: this decimal constant is unsigned only in ISO C90
DP600T.c:32002: warning: comparison is always false due to limited range of data type
DP600T.c:32262: warning: comparison is always false due to limited range of data type
DP600T.c:32715: warning: comparison is always false due to limited range of data type
DP600T.c: In function '_FNC_123_j':
DP600T.c:33933: warning: comparison is always false due to limited range of data type
DP600T.c:33989: warning: comparison is always false due to limited range of data type
DP600T.c:35132: warning: comparison is always false due to limited range of data type
DP600T.c:35211: warning: comparison is always false due to limited range of data type
DP600T.c:35290: warning: comparison is always false due to limited range of data type
DP600T.c: In function '_FNC_123_k':
DP600T.c:36955: warning: comparison is always false due to limited range of data type
DP600T.c:37034: warning: comparison is always false due to limited range of data type
DP600T.c:37113: warning: comparison is always false due to limited range of data type
DP600T.c:37867: warning: comparison is always false due to limited range of data type
DP600T.c:37946: warning: comparison is always false due to limited range of data type
DP600T.c:38025: warning: comparison is always false due to limited range of data type
DP600T.c:38779: warning: comparison is always false due to limited range of data type
DP600T.c:38858: warning: comparison is always false due to limited range of data type
DP600T.c:38937: warning: comparison is always false due to limited range of data type
DP600T.c:39691: warning: comparison is always false due to limited range of data type
DP600T.c:39770: warning: comparison is always false due to limited range of data type
DP600T.c:39849: warning: comparison is always false due to limited range of data type
DP600T.c: In function '_FNC_123_l':
DP600T.c:41533: warning: comparison is always false due to limited range of data type
DP600T.c:41612: warning: comparison is always false due to limited range of data type
DP600T.c:41691: warning: comparison is always false due to limited range of data type
DP600T.c:42445: warning: comparison is always false due to limited range of data type
DP600T.c:42524: warning: comparison is always false due to limited range of data type
DP600T.c:42603: warning: comparison is always false due to limited range of data type
DP600T.c:43357: warning: comparison is always false due to limited range of data type
DP600T.c:43436: warning: comparison is always false due to limited range of data type
DP600T.c:43515: warning: comparison is always false due to limited range of data type
DP600T.c: In function '_FNC_123_m':
DP600T.c:45665: warning: comparison is always false due to limited range of data type
DP600T.c:45721: warning: comparison is always false due to limited range of data type
DP600T.c: In function '_FNC_123_n':
DP600T.c:47194: warning: comparison is always false due to limited range of data type
DP600T.c:47268: warning: comparison is always false due to limited range of data type
DP600T.c:47342: warning: comparison is always false due to limited range of data type
DP600T.c:47416: warning: comparison is always false due to limited range of data type
DP600T.c:47490: warning: comparison is always false due to limited range of data type
DP600T.c:47549: warning: comparison is always false due to limited range of data type
DP600T.c:47569: warning: comparison is always false due to limited range of data type
DP600T.c: In function '_FNC_123_o':
DP600T.c:50103: warning: comparison is always false due to limited range of data type
DP600T.c:50159: warning: comparison is always false due to limited range of data type
DP600T.c:50991: warning: comparison is always false due to limited range of data type
DP600T.c:51065: warning: comparison is always false due to limited range of data type
DP600T.c:51139: warning: comparison is always false due to limited range of data type
DP600T.c:51213: warning: comparison is always false due to limited range of data type
DP600T.c:51287: warning: comparison is always false due to limited range of data type
DP600T.c:51361: warning: comparison is always false due to limited range of data type
DP600T.c:51509: warning: comparison is always false due to limited range of data type
DP600T.c:51583: warning: comparison is always false due to limited range of data type
DP600T.c: In function '_FNC_123_p':
DP600T.c:52176: warning: comparison is always false due to limited range of data type
DP600T.c:52250: warning: comparison is always false due to limited range of data type
DP600T.c:52324: warning: comparison is always false due to limited range of data type
DP600T.c:52398: warning: comparison is always false due to limited range of data type
DP600T.c:52472: warning: comparison is always false due to limited range of data type
DP600T.c:52546: warning: comparison is always false due to limited range of data type
DP600T.c:52620: warning: comparison is always false due to limited range of data type
DP600T.c:52694: warning: comparison is always false due to limited range of data type
DP600T.c:52768: warning: comparison is always false due to limited range of data type
DP600T.c:52842: warning: comparison is always false due to limited range of data type
DP600T.c:53835: warning: comparison is always false due to limited range of data type
DP600T.c:53891: warning: comparison is always false due to limited range of data type
DP600T.c: In function '_FNC_123_q':
DP600T.c:55255: warning: comparison is always false due to limited range of data type
DP600T.c:55284: warning: comparison is always false due to limited range of data type
DP600T.c:55783: warning: comparison is always false due to limited range of data type
DP600T.c:55904: warning: comparison is always false due to limited range of data type
DP600T.c:56025: warning: comparison is always false due to limited range of data type
DP600T.c:56536: warning: comparison is always false due to limited range of data type
DP600T.c:56843: warning: comparison is always false due to limited range of data type
DP600T.c:57136: warning: comparison is always false due to limited range of data type
DP600T.c: In function '_FNC_123_r':
DP600T.c:57563: warning: comparison is always false due to limited range of data type
DP600T.c: In function '_FNC_123_s':
DP600T.c:61020: warning: comparison is always false due to limited range of data type
DP600T.c:61345: warning: comparison is always true due to limited range of data type
DP600T.c:61352: warning: comparison is always true due to limited range of data type
DP600T.c:61359: warning: comparison is always true due to limited range of data type
DP600T.c:61382: warning: comparison is always true due to limited range of data type
DP600T.c:61389: warning: comparison is always true due to limited range of data type
DP600T.c:61396: warning: comparison is always true due to limited range of data type
DP600T.c:61402: warning: comparison is always false due to limited range of data type
DP600T.c:61489: warning: comparison is always false due to limited range of data type
DP600T.c:61840: warning: comparison is always true due to limited range of data type
DP600T.c:61847: warning: comparison is always true due to limited range of data type
DP600T.c:61854: warning: comparison is always true due to limited range of data type
DP600T.c:61867: warning: comparison is always false due to limited range of data type
DP600T.c:61891: warning: comparison is always false due to limited range of data type
DP600T.c:61915: warning: comparison is always false due to limited range of data type
DP600T.c:62359: warning: comparison is always false due to limited range of data type
DP600T.c:62363: warning: comparison is always false due to limited range of data type
DP600T.c:62364: warning: large integer implicitly truncated to unsigned type
DP600T.c:62369: warning: comparison is always false due to limited range of data type
DP600T.c:62405: warning: comparison is always true due to limited range of data type
DP600T.c:59735: warning: unused variable 'aUN3862DX'
DP600T.c:59625: warning: unused variable '_U16Index2'
DP600T.c:59538: warning: 'aN1488' may be used uninitialized in this function
DP600T.c:59732: warning: 'aUN3857' may be used uninitialized in this function
DP600T.c: In function '_FNC_123_r':
DP600T.c:57380: warning: 'aXN2864' may be used uninitialized in this function
DP600T.c: In function '_FNC_123_q':
DP600T.c:56883: warning: 'aUN519' is used uninitialized in this function
DP600T.c:54274: warning: 'aN996' may be used uninitialized in this function
DP600T.c:54632: warning: 'aXN2833' may be used uninitialized in this function
DP600T.c: In function '_FNC_123_o':
DP600T.c:49258: warning: 'aUN786' may be used uninitialized in this function
DP600T.c: In function '_FNC_123_m':
DP600T.c:44391: warning: 'aXN2280' may be used uninitialized in this function
DP600T.c:44456: warning: 'aXN2311' may be used uninitialized in this function
DP600T.c: In function '_FNC_123_j':
DP600T.c:33263: warning: 'aXN385' may be used uninitialized in this function
DP600T.c: In function '_FNC_123_g':
DP600T.c:24945: warning: 'aN1281' may be used uninitialized in this function
DP600T.c: In function '_FNC_123_f':
DP600T.c:22640: warning: 'aXN263' may be used uninitialized in this function
DP600T.c:22729: warning: 'aXN304' may be used uninitialized in this function
DP600T.c: In function '_FNC_123_e':
DP600T.c:20183: warning: 'aXN139' may be used uninitialized in this function
DP600T.c:20268: warning: 'aXN222' may be used uninitialized in this function
DP600T.c: In function '_FNC_123_d':
DP600T.c:17375: warning: 'aXN34' may be used uninitialized in this function
DP600T.c:17524: warning: 'aUN2498' may be used uninitialized in this function
DP600T.c: In function '_FNC_123_b':
DP600T.c:15325: warning: 'aUN3227' is used uninitialized in this function

Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

bgtwuk

  • Guest
Re: Warning messages by compiling
« Reply #1 on: October 10, 2013, 02:55:07 PM »
Had some of them also..

Ignored them..


Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Re: Warning messages by compiling
« Reply #2 on: October 10, 2013, 03:13:30 PM »
Hi,

thanks for answer.

But in my own programs I have never had such Warnings!

I think it is better not to produce such warnings.

But I don't know, why there are this warnings.

Cann anyone help me?
 Thanks
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Offline 240glt

  • PLUS+1 Developer
  • ***
  • Posts: 35
  • Karma: +1/-0
Re: Warning messages by compiling
« Reply #3 on: October 10, 2013, 03:15:53 PM »
I just compiled a DP600 program, and I have the same warnings. They have been there for a long time, I also ignore them.

Offline Jakob

  • PLUS+1 Expert
  • ****
  • Posts: 98
  • Karma: +2/-0
Re: Warning messages by compiling
« Reply #4 on: October 10, 2013, 03:33:04 PM »
Its been awhile since I did my DP600 program, but mine has the same error messages.
Quite annoying, actually.

Hopefully D.Power solutions, has a solution coming for this issue. Other than ignoring it.
 I agree with Marbek, it just seems wrong to ignore them.

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Re: Warning messages by compiling
« Reply #5 on: October 13, 2013, 08:42:55 AM »
Anybody here from helpdesk?
Can anybody help?
Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Thomas

  • Guest
Re: Warning messages by compiling
« Reply #6 on: October 14, 2013, 08:00:14 AM »
Hi!

Sorry for those warning messages, please forward your P1P file to: plus+1helpdesk@danfoss.com

Those messages is tricky to find without the P1P file, thanks.

Please note that help desk got a new email address: plus+1helpdesk@danfoss.com

Thanks for your support making this forum an active forum // Thomas

Offline Marbek_Elektronik

  • PLUS+1 Guru
  • *****
  • Posts: 352
  • Karma: +8/-0
    • Marbek Elektronik
Re: Warning messages by compiling
« Reply #7 on: October 16, 2013, 02:20:08 PM »
Hi Thomas,

I have done this and here is the answer from helpdesk:
(hope it is alowed to post this)

"Hi Bernd
I talked to the developers of the code and according to them, you should just ignore those warnings. They are just something that is generated within the compiler and is nothing the user can control.
The warning messages are now disabled in some new hwd versions for some controllers and displays. However, the DP610 has not got this update."



Marbek Elektronik, Dipl.-Ing. Bernd Konrad
Dienstleistung, Entwicklung, Herstellung

Thomas

  • Guest
Re: Warning messages by compiling
« Reply #8 on: October 16, 2013, 02:52:15 PM »
Hi Bernd!

No problem, missed your ticket in help desk.

Over time we will release new HWD's where these fault messages will be disabled. I fully understand that it is confusing to have them popping up.

Best regards // Thomas