Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arne Øslebø
mapi
Commits
07cc5249
Commit
07cc5249
authored
Aug 28, 2006
by
Browse files
fixed some warnings
git-svn-id:
file:///home/svn/mapi/trunk@830
8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent
deed4db5
Changes
3
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
07cc5249
...
...
@@ -612,7 +612,7 @@ AC_DEFINE_DIR(DATADIR, DATADIR, [directory for drivers and function librarues])
CFLAGS=-g
if test "$GCC" = "yes"; then
CFLAGS="$CFLAGS -W -Wall
-Wshadow
-Wcast-align -Wpointer-arith"
CFLAGS="$CFLAGS -W -Wall -Wcast-align -Wpointer-arith"
fi
AC_MSG_NOTICE([generating files --------------------------------------------])
...
...
src/common/acsmx2.c
View file @
07cc5249
...
...
@@ -134,7 +134,7 @@ typedef struct acsm_summary_s
/*
*
*/
static
acsm_summary_t
summary
=
{
0
,
0
};
static
acsm_summary_t
summary
=
{};
/*
** Case Translation Table
...
...
@@ -194,7 +194,7 @@ ConvertCaseEx (unsigned char *d, unsigned char *s, int m)
/*
*
*/
void
acsmSetVerbose2
(
int
n
)
void
acsmSetVerbose2
()
{
s_verbose
=
1
;
}
...
...
@@ -1472,7 +1472,7 @@ acsmAddPattern2 (ACSM_STRUCT2 * p, unsigned char *pat, int n, int nocase,
/*
* Add a Key to the list of key+data pairs
*/
int
acsmAddKey2
(
ACSM_STRUCT2
*
p
,
unsigned
char
*
key
,
int
klen
,
int
nocase
,
void
*
data
)
int
acsmAddKey2
(
ACSM_STRUCT2
*
p
,
unsigned
char
*
key
,
int
klen
,
int
nocase
)
{
ACSM_PATTERN2
*
plist
;
...
...
@@ -1688,7 +1688,7 @@ acsmCompile2 (ACSM_STRUCT2 * acsm)
* Get the NextState from the NFA, all NFA storage formats use this
*/
inline
acstate_t
SparseGetNextStateNFA
(
acstate_t
*
ps
,
acstate_t
state
,
unsigned
input
)
acstate_t
SparseGetNextStateNFA
(
acstate_t
*
ps
,
acstate_t
state
,
int
input
)
{
acstate_t
fmt
;
acstate_t
n
;
...
...
@@ -1824,7 +1824,7 @@ acstate_t SparseGetNextStateNFA(acstate_t * ps, acstate_t state, unsigned input
* sparse and sparse-bands
*/
inline
acstate_t
SparseGetNextStateDFA
(
acstate_t
*
ps
,
acstate_t
state
,
unsigned
input
)
acstate_t
SparseGetNextStateDFA
(
acstate_t
*
ps
,
acstate_t
state
,
int
input
)
{
acstate_t
n
,
nb
;
int
index
;
...
...
@@ -2317,7 +2317,7 @@ void acsmPrintInfo2( ACSM_STRUCT2 * p)
/*
*
*/
int
acsmPrintDetailInfo2
(
ACSM_STRUCT2
*
p
)
int
acsmPrintDetailInfo2
(
)
{
return
0
;
...
...
src/common/acsmx2.h
View file @
07cc5249
...
...
@@ -160,11 +160,11 @@ int acsmSelectFSA2( ACSM_STRUCT2 * acsm, int fsa );
void
acsmSetMaxSparseBandZeros2
(
ACSM_STRUCT2
*
acsm
,
int
n
);
void
acsmSetMaxSparseElements2
(
ACSM_STRUCT2
*
acsm
,
int
n
);
int
acsmSetAlphabetSize2
(
ACSM_STRUCT2
*
acsm
,
int
n
);
void
acsmSetVerbose2
(
int
n
);
void
acsmSetVerbose2
();
void
acsmPrintInfo2
(
ACSM_STRUCT2
*
p
);
int
acsmPrintDetailInfo2
(
ACSM_STRUCT2
*
);
int
acsmPrintDetailInfo2
();
int
acsmPrintSummaryInfo2
();
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment