Added PNG_UNUSED macro in contrib/powerpc/linux{_aux}.c

This commit is contained in:
Vadim Barkov 2017-02-01 14:03:57 +00:00
parent b1be78460a
commit b42e8bce3a
2 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,8 @@ png_have_vsx(png_structp png_ptr)
char input[MAXLINE];
char *token = NULL;
PNG_UNUSED(png_ptr)
f = fopen("/proc/cpuinfo", "r");
if (f != NULL)
{

View File

@ -22,7 +22,11 @@
static int
png_have_vsx(png_structp png_ptr)
{
const unsigned long auxv = getauxval( AT_HWCAP );
PNG_UNUSED(png_ptr)
if(auxv & (PPC_FEATURE_HAS_ALTIVEC|PPC_FEATURE_HAS_VSX ))
return 1;
else