Cleanup some of the more obscure gcc warnings.
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
#define INCasLibh
|
||||
|
||||
#include "shareLib.h"
|
||||
#include "ellLib.h"
|
||||
#include "errlog.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -8,9 +8,8 @@
|
||||
* in file LICENSE that is included with this distribution.
|
||||
\*************************************************************************/
|
||||
%{
|
||||
static int yyerror();
|
||||
static int yyerror(char *);
|
||||
static int yy_start;
|
||||
static int myParse();
|
||||
#include "asLibRoutines.c"
|
||||
static int yyFailed = FALSE;
|
||||
static int line_num=1;
|
||||
@@ -207,8 +206,7 @@ rule_hag_list_name: tokenSTRING
|
||||
|
||||
#include "asLib_lex.c"
|
||||
|
||||
static int yyerror(str)
|
||||
char *str;
|
||||
static int yyerror(char *str)
|
||||
{
|
||||
if (strlen(str)) epicsPrintf("%s\n", str);
|
||||
epicsPrintf("Access Security file error at line %d\n",
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#include "epicsStdioRedirect.h"
|
||||
#include "dbDefs.h"
|
||||
#include "epicsThread.h"
|
||||
#include "ellLib.h"
|
||||
#include "cantProceed.h"
|
||||
#include "epicsMutex.h"
|
||||
#include "epicsPrint.h"
|
||||
@@ -27,8 +26,6 @@
|
||||
#include "freeList.h"
|
||||
#include "macLib.h"
|
||||
#include "postfix.h"
|
||||
#include "errlog.h"
|
||||
#include "ellLib.h"
|
||||
|
||||
static epicsMutexId asLock;
|
||||
#define LOCK epicsMutexMustLock(asLock)
|
||||
@@ -45,9 +42,10 @@ epicsShareDef int asActive = FALSE;
|
||||
static void *freeListPvt = NULL;
|
||||
|
||||
|
||||
#define RPCL_LEN 184
|
||||
#define DEFAULT "DEFAULT"
|
||||
|
||||
/* Defined in asLib.y */
|
||||
static int myParse(ASINPUTFUNCPTR inputfunction);
|
||||
|
||||
/*private routines */
|
||||
static long asAddMemberPvt(ASMEMBERPVT *pasMemberPvt,const char *asgName);
|
||||
@@ -239,7 +237,7 @@ long epicsShareAPI asInitFP(FILE *fp,const char *substitutions)
|
||||
errMessage(status,"asInitFP: macCreateHandle error");
|
||||
return(status);
|
||||
}
|
||||
macParseDefns(macHandle,(char *)substitutions,&macPairs);
|
||||
macParseDefns(macHandle,substitutions,&macPairs);
|
||||
if(macPairs ==NULL) {
|
||||
macDeleteHandle(macHandle);
|
||||
macHandle = NULL;
|
||||
|
||||
@@ -21,7 +21,7 @@ static ASINPUTFUNCPTR *my_yyinput;
|
||||
#undef YY_INPUT
|
||||
#define YY_INPUT(b,r,ms) (r=(*my_yyinput)((char *)b,ms))
|
||||
|
||||
static int yyreset()
|
||||
static int yyreset(void)
|
||||
{
|
||||
line_num=1;
|
||||
BEGIN INITIAL;
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "dbDefs.h"
|
||||
#include "errlog.h"
|
||||
#include "asLib.h"
|
||||
#include "dbStaticLib.h"
|
||||
|
||||
Reference in New Issue
Block a user