apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Collins-Sussman" <suss...@red-bean.com>
Subject apr_ssize_t warning?
Date Sat, 23 Jun 2007 16:14:20 GMT
When building subversion's trunk today, my gcc (4.0.1, darwin,
coreduo) gave this warning:

    subversion/libsvn_repos/dump.c:76: warning: format '%d' expects
type 'int', but argument 3 has type 'apr_ssize_t'

The line of code is:

    apr_psprintf(pool, "K %" APR_SSIZE_T_FMT "\n", keylen));

For some reason, the configure script believes that an apr_ssize_t is
the same size as an int?  (%d, rather than %ld ?)

Not sure if this is a bug, or what.


(Also:  unrelated note -- on the 'projects using APR' web page
(http://apr.apache.org/projects.html), we should list 'serf'.)

Mime
View raw message