fix a couple of clang warnings
This commit is contained in:
parent
7ef0ae826f
commit
8b1817ddd0
@ -1721,7 +1721,18 @@ vips_composite2( VipsImage *base, VipsImage *overlay, VipsImage **out,
|
|||||||
va_list ap;
|
va_list ap;
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wvarargs"
|
||||||
|
|
||||||
|
/* Triggers a clang compiler warning because mode might not be an int.
|
||||||
|
* I think the warning is harmless for all platforms we care about.
|
||||||
|
*/
|
||||||
va_start( ap, mode );
|
va_start( ap, mode );
|
||||||
|
|
||||||
|
g_assert( sizeof( mode ) == sizeof( int ) );
|
||||||
|
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
|
||||||
result = vips_call_split( "composite2", ap, base, overlay, out, mode );
|
result = vips_call_split( "composite2", ap, base, overlay, out, mode );
|
||||||
va_end( ap );
|
va_end( ap );
|
||||||
|
|
||||||
|
@ -300,7 +300,8 @@ vips_foreign_save_heif_build( VipsObject *object )
|
|||||||
return( -1 );
|
return( -1 );
|
||||||
|
|
||||||
error = heif_context_get_encoder_for_format( heif->ctx,
|
error = heif_context_get_encoder_for_format( heif->ctx,
|
||||||
heif->compression, &heif->encoder );
|
(enum heif_compression_format) heif->compression,
|
||||||
|
&heif->encoder );
|
||||||
if( error.code ) {
|
if( error.code ) {
|
||||||
if( error.code == heif_error_Unsupported_filetype )
|
if( error.code == heif_error_Unsupported_filetype )
|
||||||
vips_error( "heifsave",
|
vips_error( "heifsave",
|
||||||
|
@ -639,6 +639,8 @@ int vips_dzsave( VipsImage *in, const char *name, ... )
|
|||||||
* @VIPS_FOREIGN_HEIF_COMPRESSION_AV1: aom
|
* @VIPS_FOREIGN_HEIF_COMPRESSION_AV1: aom
|
||||||
*
|
*
|
||||||
* The compression format to use inside a HEIF container.
|
* The compression format to use inside a HEIF container.
|
||||||
|
*
|
||||||
|
* This is assumed to use the same numbering as %heif_compression_format.
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VIPS_FOREIGN_HEIF_COMPRESSION_HEVC = 1,
|
VIPS_FOREIGN_HEIF_COMPRESSION_HEVC = 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user