mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 07:16:23 -05:00
Recompile with -pedantic.
This commit is contained in:
parent
e3d7efda7f
commit
c378a80204
2
Makefile
2
Makefile
@ -26,7 +26,7 @@ uname_S := $(shell sh -c 'echo $(uname_S) | sed s/_.*$$//')
|
|||||||
PROGRAM=ue
|
PROGRAM=ue
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
WARNINGS=-Wall -Wextra -Wstrict-prototypes -Wno-unused-parameter
|
WARNINGS=-pedantic -Wall -Wextra -Wstrict-prototypes -Wno-unused-parameter
|
||||||
CFLAGS=-O2 $(WARNINGS)
|
CFLAGS=-O2 $(WARNINGS)
|
||||||
#CC=c89 +O3 # HP
|
#CC=c89 +O3 # HP
|
||||||
#CFLAGS= -D_HPUX_SOURCE -DSYSV
|
#CFLAGS= -D_HPUX_SOURCE -DSYSV
|
||||||
|
4
eval.c
4
eval.c
@ -185,7 +185,7 @@ enum function_type {
|
|||||||
NILNAMIC = 0,
|
NILNAMIC = 0,
|
||||||
MONAMIC = (1 << 6),
|
MONAMIC = (1 << 6),
|
||||||
DYNAMIC = (2 << 6),
|
DYNAMIC = (2 << 6),
|
||||||
TRINAMIC = (3 << 6),
|
TRINAMIC = (3 << 6)
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
enum function_code {
|
enum function_code {
|
||||||
@ -195,7 +195,7 @@ enum function_code {
|
|||||||
UFAND, UFOR, UFLENGTH, UFUPPER, UFLOWER, UFTRUTH,
|
UFAND, UFOR, UFLENGTH, UFUPPER, UFLOWER, UFTRUTH,
|
||||||
UFASCII, UFCHR, UFGTKEY, UFRND, UFABS, UFSINDEX,
|
UFASCII, UFCHR, UFGTKEY, UFRND, UFABS, UFSINDEX,
|
||||||
UFENV, UFBIND, UFEXIST, UFFIND, UFBAND, UFBOR,
|
UFENV, UFBIND, UFEXIST, UFFIND, UFBAND, UFBOR,
|
||||||
UFBXOR, UFBNOT, UFXLATE,
|
UFBXOR, UFBNOT, UFXLATE
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
/* List of recognized user functions. */
|
/* List of recognized user functions. */
|
||||||
|
7
lock.c
7
lock.c
@ -1,3 +1,5 @@
|
|||||||
|
/* lock.c -- implements lock.h */
|
||||||
|
|
||||||
#include "estruct.h"
|
#include "estruct.h"
|
||||||
#include "lock.h"
|
#include "lock.h"
|
||||||
|
|
||||||
@ -167,4 +169,9 @@ void lckerror(char *errstr)
|
|||||||
strcat(obuf, strerror(errno));
|
strcat(obuf, strerror(errno));
|
||||||
mlwrite(obuf);
|
mlwrite(obuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
typedef void _pedantic_empty_translation_unit ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* end of lock.c */
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* mingw32.c -- */
|
||||||
|
|
||||||
#ifdef MINGW32
|
#ifdef MINGW32
|
||||||
#include "termio.h"
|
#include "termio.h"
|
||||||
#include "terminal.h"
|
#include "terminal.h"
|
||||||
@ -188,4 +190,8 @@ static void ttmove( int l, int c) {
|
|||||||
wgoxy( c, l) ;
|
wgoxy( c, l) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
typedef void _pedantic_empty_translation_unit ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* end of mingw32.c */
|
||||||
|
5
pklock.c
5
pklock.c
@ -127,4 +127,9 @@ char *undolock( const char *fname)
|
|||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
typedef void _pedantic_empty_translation_unit ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* end of pklock.c */
|
||||||
|
Loading…
Reference in New Issue
Block a user