You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Philip Martin <ph...@codematters.co.uk> on 2002/05/23 20:02:50 UTC

compiler printf format warning

Hello

gcc is complaining about

../svn/subversion/libsvn_fs/reps-strings.c: In function `svn_fs__rep_contents_clear':
../svn/subversion/libsvn_fs/reps-strings.c:1076: warning: char format, svn_fs__representation_t arg (arg 6)

    return svn_error_createf
      (SVN_ERR_FS_REP_NOT_MUTABLE, 0, NULL, trail->pool,
       "svn_fs__rep_contents_clear: rep \"%s\" is not mutable", rep);

It's not immediately obvious to me which bit of rep should be printed.

-- 
Philip

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: compiler printf format warning

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
Philip Martin <ph...@codematters.co.uk> writes:
> ../svn/subversion/libsvn_fs/reps-strings.c: In function `svn_fs__rep_contents_clear':
> ../svn/subversion/libsvn_fs/reps-strings.c:1076: warning: char format, svn_fs__representation_t arg (arg 6)
> 
>     return svn_error_createf
>       (SVN_ERR_FS_REP_NOT_MUTABLE, 0, NULL, trail->pool,
>        "svn_fs__rep_contents_clear: rep \"%s\" is not mutable", rep);
> 
> It's not immediately obvious to me which bit of rep should be printed.

I think it should print just rep_key (which is a param).  Done in
revision 2009, thanks!

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org