Added PNG_UNUSED macro in contrib/powerpc/linux{_aux}.c
This commit is contained in:
parent
b1be78460a
commit
b42e8bce3a
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user