Date: Sat, 25 Aug 2018 03:35:46 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r477995 - head/biology/primer3/files Message-ID: <201808250335.w7P3ZkOL001043@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Sat Aug 25 03:35:46 2018 New Revision: 477995 URL: https://svnweb.freebsd.org/changeset/ports/477995 Log: biology/primer3: Fix build with Clang 6 thal.c:426:13: error: comparison between pointer and integer ('int' and 'const unsigned char *') if ('\0' == oligo_f) { ~~~~ ^ ~~~~~~~ thal.c:431:13: error: comparison between pointer and integer ('int' and 'const unsigned char *') if ('\0' == oligo_r) { ~~~~ ^ ~~~~~~~ http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/primer3-2.3.6.log Added: head/biology/primer3/files/ head/biology/primer3/files/patch-thal.c (contents, props changed) Added: head/biology/primer3/files/patch-thal.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/biology/primer3/files/patch-thal.c Sat Aug 25 03:35:46 2018 (r477995) @@ -0,0 +1,24 @@ +hal.c:426:13: error: comparison between pointer and integer ('int' and 'const unsigned char *') + if ('\0' == oligo_f) { + ~~~~ ^ ~~~~~~~ +thal.c:431:13: error: comparison between pointer and integer ('int' and 'const unsigned char *') + if ('\0' == oligo_r) { + ~~~~ ^ ~~~~~~~ + +--- thal.c.orig 2018-08-25 03:33:22 UTC ++++ thal.c +@@ -423,12 +423,12 @@ thal(const unsigned char *oligo_f, + "Illegal type"); + o->align_end_1 = -1; + o->align_end_2 = -1; +- if ('\0' == oligo_f) { ++ if ('\0' == *oligo_f) { + strcpy(o->msg, "Empty first sequence"); + o->temp = 0.0; + return; + } +- if ('\0' == oligo_r) { ++ if ('\0' == *oligo_r) { + strcpy(o->msg, "Empty second sequence"); + o->temp = 0.0; + return;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808250335.w7P3ZkOL001043>