Re: [dev] [sbase] [patch] Add sha256sum(1)

From: sin <sin_AT_2f30.org>
Date: Sun, 21 Jul 2013 21:06:13 +0300

On Sun, Jul 21, 2013 at 09:10:31AM -0400, Galos, David wrote:
> >> Question, what are we to do with sha512sum? It requires some
> >> constants to be long long and we are compiling with C89/C90.
> >>
> >> Any ideas?
> > So far, the solution to this has been to use int64_t in stdint.h
> > Although that header is only guaranteed in c99, the header tends
> > to be available in c89 mode, and the compiler does not warn
> > about it.
>
> Actually, you said constants. I think the real solution to this problem
> is to add '-Wno-long-long' to CFLAGS. Writing 64bit emulation code
> would be idiotic, and if the underlying compiler doesn't have 64 bit
> support, it's not like anything short of such emulation would help
> anyway.

Cool, will have a look at it and send in a patch in the next few
days.
Received on Sun Jul 21 2013 - 20:06:13 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 21 2013 - 20:12:06 CEST