From 94ea9e5a63978cd49e5f5269885489bfee3fa008 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Tue, 9 Jul 2024 08:34:53 +0000 Subject: [PATCH] test/amg.c: include _hypre_parcsr_ls.h to fix build warning The missing declaration of HYPRE_BoomerAMGGetCumNnzAP is throwing a warning when building with gcc, fix this by including _hypre_parcsr_ls.h amg.c: In function 'main': amg.c:406:7: warning: implicit declaration of function 'HYPRE_BoomerAMGGetCumNnzAP'; did you mean 'HYPRE_BoomerAMGSetNumPaths'? [-Wimplicit-function-declaration] 406 | HYPRE_BoomerAMGGetCumNnzAP(pcg_precond, &cum_nnz_AP); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | HYPRE_BoomerAMGSetNumPaths Signed-off-by: Colin Ian King --- test/amg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/amg.c b/test/amg.c index 18811ea..b291188 100644 --- a/test/amg.c +++ b/test/amg.c @@ -32,6 +32,7 @@ #include "HYPRE_IJ_mv.h" #include "HYPRE_parcsr_ls.h" +#include "_hypre_parcsr_ls.h" #include "_hypre_parcsr_mv.h" #include "HYPRE_krylov.h"