Welcome to iraf.net Tuesday, April 23 2024 @ 09:33 PM GMT


 Forum Index > Archives > Sitemail Archives
 Undefined behaviour in ifocas C code
   
Anonymous: Guest
 10/05/2005 02:43PM (Read 1149 times)  



A compiler pointed out the following two classes of error in source code
for the ifocas package:cc: Warning: areas.c, line 176: In this statement, the expression "k=(++k)%8" mo
difies the variable "k" more than once without an intervening sequence point. T
his behavior is undefined. (undefvarmod)
for (;; k = (++k) % 8) {
--------------------^cc: Warning: asmble.c, line 311: The scalar variable "i" is fetched but not init
ialized. And there may be other such fetches of this variable that have not bee
n reported in this compilation. (uninit1)
ob.tarea = ob[nsb].area;
-------------------^
cc: Warning: evaluate.c, line 34: The scalar variable "diag" is fetched but not
initialized. And there may be other such fetches of this variable that have not
been reported in this compilation. (uninit1)
if (evlobj (&ob, &area, diag, stdout))
--------------------------------^
cc: Warning: match.c, line 191: In this statement, the expression "i=(++i)%1000"
modifies the variable "i" more than once without an intervening sequence point.
This behavior is undefined. (undefvarmod)
for (i = first; nbuf != 0; i = (++i) % PMAX) {
-----------------------------------^
cc: Warning: match.c, line 259: In this statement, the expression "i=(++i)%1000"
modifies the variable "i" more than once without an intervening sequence point.
This behavior is undefined. (undefvarmod)
for (i = first; nbuf != 0; i = (++i) % PMAX) {
-------------------------------^
cc: Warning: spotcalib.c, line 293: The scalar variable "i" is fetched but not i
nitialized. And there may be other such fetches of this variable that have not
been reported in this compilation. (uninit1)
return ((float) i);
------------------------^


 
   

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login