From 0426d98aab82096401624d2c4df2589e0758572b Mon Sep 17 00:00:00 2001 From: Alistair Thomas Date: Mon, 2 Oct 2017 21:52:52 +0100 Subject: [PATCH 1/2] Change a doc comment to just a C comment in foreign/foreign.c This stops the g-ir-scanner warning: foreign/foreign.c:1025: Error: Vips: identifier not found on the first line: * Loaders can call this --- libvips/foreign/foreign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvips/foreign/foreign.c b/libvips/foreign/foreign.c index f3ec8133..0c310f9b 100644 --- a/libvips/foreign/foreign.c +++ b/libvips/foreign/foreign.c @@ -1047,7 +1047,7 @@ vips_foreign_load_init( VipsForeignLoad *load ) load->access = VIPS_ACCESS_RANDOM; } -/** +/* * Loaders can call this */ From 1ed7e668333efa9ae853c02422051111b1f6850f Mon Sep 17 00:00:00 2001 From: Alistair Thomas Date: Mon, 2 Oct 2017 22:12:27 +0100 Subject: [PATCH 2/2] Remove duplicate doc comment for 'VipsKernel' Now that resample/reduceh.cpp is being scanned by g-ir-scanner, g-ir-scanner was giving this warning: resample/reduceh.cpp:58: Warning: Vips: multiple comment blocks documenting 'VipsKernel:' identifier (already seen at reduce.c:55) --- libvips/resample/reduceh.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/libvips/resample/reduceh.cpp b/libvips/resample/reduceh.cpp index 6922a903..dc41cdfb 100644 --- a/libvips/resample/reduceh.cpp +++ b/libvips/resample/reduceh.cpp @@ -57,17 +57,6 @@ #include "presample.h" #include "templates.h" -/** - * VipsKernel: - * @VIPS_KERNEL_NEAREST: nearest-neighbour - * @VIPS_KERNEL_LINEAR: linear interpolation - * @VIPS_KERNEL_CUBIC: cubic interpolation - * @VIPS_KERNEL_LANCZOS2: lanczos2 interpolation - * @VIPS_KERNEL_LANCZOS3: lanczos3 interpolation - * - * 1D resampling kernels. - */ - typedef struct _VipsReduceh { VipsResample parent_instance;