Date: Thu, 5 Sep 2013 21:13:21 GMT From: mattbw@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r256973 - soc2013/mattbw/backend Message-ID: <201309052113.r85LDLjR065844@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mattbw Date: Thu Sep 5 21:13:21 2013 New Revision: 256973 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=256973 Log: Yet another gcc/clang catch-22. Yay. Modified: soc2013/mattbw/backend/pkgutils.c Modified: soc2013/mattbw/backend/pkgutils.c ============================================================================== --- soc2013/mattbw/backend/pkgutils.c Thu Sep 5 21:10:17 2013 (r256972) +++ soc2013/mattbw/backend/pkgutils.c Thu Sep 5 21:13:21 2013 (r256973) @@ -205,6 +205,14 @@ assert(pkg != NULL); + /* + * clang complains about this redundant assignment, but + * gcc complains if it doesn't exist. + */ +#ifndef __clang__ + repo = ""; +#endif /* __clang */ + switch (pkg_type(pkg)) { case PKG_OLD_FILE: case PKG_FILE:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309052113.r85LDLjR065844>