[gmx-developers] Jenkins errors when compiling without ASSERT
Berk Hess
hess at kth.se
Wed Aug 12 22:51:46 CEST 2015
Hi,
Would adding gmx_unused to the function argument not also be an option here?
Berk
On 08/12/2015 10:43 PM, Mark Abraham wrote:
> Hi,
>
> You can use GMX_RELEASE_ASSERT to have the usage in all builds. Or you
> can use GMX_UNUSED_VALUE (or something) to "use" it in a somewhat
> maintainable way.
>
> Mark
>
> On Wed, Aug 12, 2015 at 10:27 PM David van der Spoel
> <spoel at xray.bmc.uu.se <mailto:spoel at xray.bmc.uu.se>> wrote:
>
> Hi, I have some code like
>
> void koko(const std::string &resname)
> {
> ...
> GMX_ASSERT((resname.compare(nt) == 0), buf);
> }
>
> and now Jenkins decided that resname is not used in my function,
> and my
> build fails.
>
> Any simple workaround except doing unnecessary stuff?
>
> --
> David van der Spoel, Ph.D., Professor of Biology
> Dept. of Cell & Molec. Biol., Uppsala University.
> Box 596, 75124 Uppsala, Sweden. Phone: +46184714205.
> spoel at xray.bmc.uu.se <mailto:spoel at xray.bmc.uu.se>
> http://folding.bmc.uu.se
> --
> Gromacs Developers mailing list
>
> * Please search the archive at
> http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List
> before posting!
>
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>
> * For (un)subscribe requests visit
> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers
> or send a mail to gmx-developers-request at gromacs.org
> <mailto:gmx-developers-request at gromacs.org>.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20150812/be85f954/attachment.html>
More information about the gromacs.org_gmx-developers
mailing list