Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2013 10:20:32 -0800
From:      Jason Evans <jasone@freebsd.org>
To:        Alie Tan <alie@affle.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Compilation error (pkgng)
Message-ID:  <CDE2773E-A9EB-40EC-9714-FA96A2EE3C02@freebsd.org>
In-Reply-To: <CANuCnH8A27v_n=JndXdQUWeV2Rn3zPhrD5Vj72fi%2B0_AfpEPQw@mail.gmail.com>
References:  <CANuCnH8A27v_n=JndXdQUWeV2Rn3zPhrD5Vj72fi%2B0_AfpEPQw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 23, 2013, at 12:14 AM, Alie Tan wrote:
> Seems this check-in causing compilation error:
> 
> http://freshbsd.org/commit/freebsd/r245828
> 
> -nonliteral -c /usr/src/usr.sbin/pkg_install/lib/pkgng.c -o pkgng.o
> /usr/src/usr.sbin/pkg_install/lib/pkgng.c:53:45: error: expected ')'
>        rc = snprintf(pkgngpath, sizeof(pkgngpath) "%s/local.sqlite",
> pkgngdir);
>                                                   ^
> /usr/src/usr.sbin/pkg_install/lib/pkgng.c:53:15: note: to match this '('
>        rc = snprintf(pkgngpath, sizeof(pkgngpath) "%s/local.sqlite",
> pkgngdir);
>                     ^
> /usr/src/usr.sbin/pkg_install/lib/pkgng.c:54:9: warning: comparison of
> integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
>        if (rc >= sizeof(pkgngpath)) {
>            ~~ ^  ~~~~~~~~~~~~~~~~~
> 1 warning and 1 error generated.

Fixed by r245837.

Thanks,
Jason



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CDE2773E-A9EB-40EC-9714-FA96A2EE3C02>