fix some clang warnings

This commit is contained in:
John Cupitt 2019-12-08 13:08:38 +00:00
parent 40bffa8cc6
commit dd4b2e9c23
4 changed files with 5 additions and 6 deletions

View File

@ -365,7 +365,7 @@ vips_foreign_load_ppm_set_image( VipsForeignLoadPpm *ppm, VipsImage *image )
"pfm-scale", VIPS_FABS( ppm->scale ) );
else
vips_image_set_double( image,
"ppm-max-value", VIPS_FABS( ppm->max_value ) );
"ppm-max-value", VIPS_ABS( ppm->max_value ) );
VIPS_SETSTR( image->filename,
vips_stream_filename( VIPS_STREAM( ppm->bufis->streami ) ) );

View File

@ -840,7 +840,7 @@ rad2vips_get_header( Read *read, VipsImage *out )
if( getheader( read->bufis,
(gethfunc *) rad2vips_process_line, read ) ||
!(line = vips_bufis_get_line( read->bufis )) ||
!str2resolu( &read->rs, line ) ) {
!str2resolu( &read->rs, (char *) line ) ) {
vips_error( "rad2vips", "%s",
_( "error reading radiance header" ) );
return( -1 );

View File

@ -38,8 +38,8 @@
/*
#define VIPS_DEBUG
*/
#define TEST_SANITY
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
@ -574,8 +574,7 @@ vips_streami_unminimise( VipsStreami *streami )
if( (fd = vips_tracked_open( stream->filename,
MODE_READ )) == -1 ) {
vips_error_system( errno, vips_stream_nick( stream ),
_( "unable to open for read" ),
stream->filename );
_( "unable to open for read" ) );
return( -1 );
}

View File

@ -95,7 +95,7 @@ static gint64
vips_streamiu_seek_real( VipsStreami *streami,
gint64 offset, int whence )
{
GValue args[3] = { 0 };
GValue args[3] = { { 0 } };
GValue result = { 0 };
gint64 new_position;