ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rvmain.c
(Generate patch)

Comparing ray/src/rt/rvmain.c (file contents):
Revision 2.20 by greg, Wed Jan 17 01:31:08 2024 UTC vs.
Revision 2.22 by greg, Wed Oct 30 16:47:03 2024 UTC

# Line 192 | Line 192 | main(int argc, char *argv[])
192                  }
193          }
194                                          /* set/check spectral sampling */
195 <        rval = setspectrsamp(CNDX, WLPART);
196 <        if (rval < 0)
195 >        if (setspectrsamp(CNDX, WLPART) <= 0)
196                  error(USER, "unsupported spectral sampling");
197  
198          err = setview(&ourview);        /* set viewing parameters */
# Line 266 | Line 265 | wputs(                         /* warning output function */
265   )
266   {
267          int  lasterrno = errno;
268 +        if (erract[WARNING].pf == NULL)
269 +                return;         /* called by calcomp or someone */
270          eputs(s);
271          errno = lasterrno;
272   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines