bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #20262] findutils uses assert to verify conditions checkable at com


From: James Youngman
Subject: [bug #20262] findutils uses assert to verify conditions checkable at compile time
Date: Tue, 26 Jun 2007 07:59:53 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-2)

URL:
  <http://savannah.gnu.org/bugs/?20262>

                 Summary: findutils uses assert to verify conditions
checkable at compile time
                 Project: findutils
            Submitted by: jay
            Submitted on: Tuesday 06/26/2007 at 07:59
                Category: None
                Severity: 2 - Minor
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
           Fixed Release: None

    _______________________________________________________

Details:

Eric writes:

> > @@ -679,7 +679,7 @@ main (int argc, char **argv)
> >    /* Without SIZE_MAX (i.e. limits.h) this is probably
> >     * close to the best we can do.
> >     */
> > -  assert(sizeof(size_t) <= sizeof(unsigned long));
> > +  assert (sizeof(size_t) <= sizeof(unsigned long));
> >  #endif
> 
> This would be a candidate for the gnulib verify module, 
> so you can make this assertion at compile-time instead of 
> runtime.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20262>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]