Makefile: add --pedantic compiler option

avrprog.c:

	Add lots of comments, move getop() variable declarations to
	the top of the program.

	Add a typedef name to the AVR memory type and use it for
	function declarations.

	Add a usleep() delay in the sense loop to avoid becoming a cpu
	hog.

	Print out a version string so that folks know what version of
	the software they are running.

	Be sure and close the parallel device and the i/o file when
	terminating abnormally.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@8 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Brian S. Dean
2000-08-06 19:47:03 +00:00
parent 945ceb7ab9
commit dedd92130c
2 changed files with 214 additions and 35 deletions

View File

@@ -8,7 +8,7 @@ DEST = ${HOME}/bin/0.${ARCH}
all : ${TARGET}
CFLAGS = -Wall
CFLAGS = -Wall --pedantic
${TARGET} : avrprog.c
${CC} ${CFLAGS} -o ${TARGET} avrprog.c