From 3e970dd0457bd9a927de9e474072fa9d054d2c09 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 8 Apr 2022 08:19:12 -0700 Subject: [PATCH] mm2gv: make 'mm_get_type' static This function is unused outside of its containing file. --- cmd/tools/matrix_market.c | 2 +- cmd/tools/matrix_market.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/tools/matrix_market.c b/cmd/tools/matrix_market.c index d0dabf827..e854d8155 100644 --- a/cmd/tools/matrix_market.c +++ b/cmd/tools/matrix_market.c @@ -16,7 +16,7 @@ #define MALLOC gmalloc #define REALLOC grealloc -int mm_get_type(MM_typecode typecode) +static int mm_get_type(MM_typecode typecode) { if (mm_is_complex(typecode)) { return MATRIX_TYPE_COMPLEX; diff --git a/cmd/tools/matrix_market.h b/cmd/tools/matrix_market.h index 0118ada0f..1ce587f43 100644 --- a/cmd/tools/matrix_market.h +++ b/cmd/tools/matrix_market.h @@ -12,5 +12,4 @@ #include "mmio.h" #include -int mm_get_type(MM_typecode typecode); SparseMatrix SparseMatrix_import_matrix_market(FILE * f, int format); -- 2.40.0