From d5fc8c9b76a86e6d48dafc1bd3414cc90c32234c Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Sun, 7 May 2017 10:06:38 -0400 Subject: [PATCH] ioc/dbStatic: reduce warning spam for typed rset There are an amazing number of warnings in any code which includes recSup.h indirectly, including dbStaticLib.h. Don't use the RECSUPFUN typedef internally to reduce the number. --- src/ioc/dbStatic/recSup.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/ioc/dbStatic/recSup.h b/src/ioc/dbStatic/recSup.h index 91309898e..2850e6292 100644 --- a/src/ioc/dbStatic/recSup.h +++ b/src/ioc/dbStatic/recSup.h @@ -65,24 +65,24 @@ typedef struct typed_rset rset; typedef long (*RECSUPFUN) () EPICS_DEPRECATED; /* ptr to record support function*/ struct rset { /* record support entry table */ - long number; /*number of support routines */ - RECSUPFUN report; /*print report */ - RECSUPFUN init; /*init support */ - RECSUPFUN init_record; /*init record */ - RECSUPFUN process; /*process record */ - RECSUPFUN special; /*special processing */ - RECSUPFUN get_value; /*no longer used */ - RECSUPFUN cvt_dbaddr; /*cvt dbAddr */ - RECSUPFUN get_array_info; - RECSUPFUN put_array_info; - RECSUPFUN get_units; - RECSUPFUN get_precision; - RECSUPFUN get_enum_str; /*get string from enum item*/ - RECSUPFUN get_enum_strs; /*get all enum strings */ - RECSUPFUN put_enum_str; /*put string from enum item*/ - RECSUPFUN get_graphic_double; - RECSUPFUN get_control_double; - RECSUPFUN get_alarm_double; + long number; /*number of support routines */ + long (*report)(); /*print report */ + long (*init)(); /*init support */ + long (*init_record)(); /*init record */ + long (*process)(); /*process record */ + long (*special)(); /*special processing */ + long (*get_value)(); /*no longer used */ + long (*cvt_dbaddr)(); /*cvt dbAddr */ + long (*get_array_info)(); + long (*put_array_info)(); + long (*get_units)(); + long (*get_precision)(); + long (*get_enum_str)(); /*get string from enum item*/ + long (*get_enum_strs)();/*get all enum strings */ + long (*put_enum_str)(); /*put string from enum item*/ + long (*get_graphic_double)(); + long (*get_control_double)(); + long (*get_alarm_double)(); } EPICS_DEPRECATED; typedef struct rset rset EPICS_DEPRECATED;