[GRASS-dev] off_t question
Martin Landa
landa.martin at gmail.com
Mon Apr 1 09:36:23 PDT 2013
Hi,
when compiling diglib I am getting several warnings like
format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has
type ‘off_t’ [-Wformat]
I am running Debian Unstable 64bit.
With a sample app
#include <stdio.h>
#include <sys/types.h>
int main(void) {
off_t blah;
return 0;
}
I am getting
gcc -E sizes.c | grep __off_t | grep typedef
typedef long int __off_t;
typedef __off_t off_t;
and
gcc -E sizes.c -D_FILE_OFFSET_BITS=64 | grep off_t
typedef __off64_t off_t;
This seems to be OK. Trying to understand why %lld causes these warnings.
Martin
--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130401/1d1ebc04/attachment.html>
More information about the grass-dev
mailing list