Additional compiler warning fixes is expint test.

Write result to a global variable rather than a function local
variable so that the compiler does not complain about unused locals.

ChangeLog:

	* src/expint/expint.c (benchmark_result): Added.
	(benchmark): Write result of call to benchmark_result.
Fix compiler warnings in test aha-compress.

Possibly ambiguous statement, add parentheses to make the meaning
clearer.  Use long instead of int so the test will compile for hosts
with 16-bit integers.

ChangeLog:

	* src/aha-compress/compress_test.c (compress4): Add parentheses to
	make meaning clearer, use long rather than int.
	(compress3): Use long rather than int.
	(benchmark): Use long rather than int.
Fix compiler warnings in test aha-mont64.

Incorrect function parameter types, and unused variables.

ChangeLog:

	* src/aha-mont64/mont64.c (xbinGCD): Make parameters volatile to
	match the data being passed in.
	(benchmark): Remove unused variable.
Fix compiler warnings in test gdb-constvars.

Lots of defined but unused variables.

ChangeLog:

	* src/gdb-constvars/constvars.c (benchmark): Cast defined but
	unused variables to void.
Fix compiler warnings in test huffbench.

Unused variables and commented out code.

ChangeLog:

	* src/huffbench/huffbench.c (benchmark): Remove unused variables,
	and commented out code.
Fix compiler warnings in test ludcmp.

Make variable a volatile global so that the compiler does not warn
about defined but unused locals.

ChangeLog:

	* src/ludcmp/ludcmp.c (chkerr): Added as global.
	(benchmark): Variable chkerr moved from here.
Fix compiler warnings for test int_matmult.

Change type of variable to handle hosts with 16-bit ints.

ChangeLog:

	* src/int_matmult/matmult.c (matrix): Change from int to long.
Fix compiler warnings in test mergesort.

Remove unused variables.

ChangeLog:

	* src/mergesort/mergesort.c (benchmark): Remove unused variables.
Fix compiler warnings in test miniz.

Move typedef and function declaration into shared header file.
Re-order #define so correct functions are compiled in/out.  Add
missing include.

ChangeLog:

	* src/miniz/miniz.h: New file.
	* src/miniz/miniz.c: Add miniz.h include.
	(MINIZ_NO_ARCHIVE_WRITING_APIS): Move definition earlier in
	* the
	file.
	(def_realloc_func): Guard declaration with
	MINIZ_NO_ARCHIVE_WRITING_APIS.
	(mz_ulong, mz_uncompress): Move into header file.
	* src/miniz/miniz_b.c: Add string.h and miniz.h includes.
	(benchmark): Remove unused variable. Cast data before calling
	mz_compress2.
Fix compiler warnings for test minver.

Write defined but unused variables into a global volatile.

ChangeLog:

	* src/minver/minver.c (data_sink): Added.
	(minver): Write defined but unused variables into the data_sink.
Fix compiler warnings in test ndes.

Use of undefined code removed.

ChangeLog:

	* src/ndes/ndes.c (des, ks, cyfun): Remove use of undefined
	behaviour where '<<=' is used within assignment.
Fix compiler warnings in all the newlib-* tests.

The same warning is found in these test newlib-exp, newlib-log,
newlib-mod, newlib-sqrt, a defined, but unused local variable.  Make
the variable a global to avoid the compiler warning.

ChangeLog:

	* src/newlib-exp/ef_exp.c (result): New global.
	(benchmark): Make result into a new global.
	* src/newlib-log/ef_log.c: Likewise.
	* src/newlib-mod/ef_mod.c: Likewise.
	* src/newlib-sqrt/ef_sqrt.c: Likewise.
Fix compiler warnings in picojpeg test.

Undefined code, missing includes, unused functions, and defined but
unused local variables.

ChangeLog:

	* src/picojpeg/picojpeg.c (readSOSMarker): Move local variables
	out to be volatile globals, preventing the compiler from
	optimising away function calls.
	(spectral_start, spectral_end, successive_high, successive_low):
	New globals from readSOSMarker.
	(findEOI): Remove unused function.
	(checkHuffTables): Re-write undefined code.
	(convertCr): Re-write undefined code.
	* src/picojpeg/picojpeg_test.c: Add string.h include.
Fix compiler warnings in test prime.

Use of int instead of long preventing compilation on targets with
16-bit integers.  A defined but unused local variable.

ChangeLog

	* src/prime/prime.c (uint, ulong): Change uint to ulong.
	(divides, even, prime, swap): Change uint parameters to uint,
	change all uint variables to ulong.
	(benchmark): Change uint variables to ulong.  Make variable result
	a volatile global.
	(result): New global.
Fix compiler warnings in test qrduino.

Add forward declaration, missing include, and protect against
re-defining macros.

ChangeLog:

	* src/qrduino/qrencode.h (freeecc): Add declaration.
	* src/qrduino/qrframe.c: Guard code with __AVR__.
	* src/qrduino/qrtest.c: Add string.h include.
Fix compiler warnings in qsort.

Missing return type and unused variables.

ChangeLog:

	* src/qsort/qsort.c (sort): Remove unused variable.
	(benchmark): Add return type.
Fix compiler warnings in qurt.

Convert a function local to be a global in order to avoid warning
about a defined but unused local variable.

ChangeLog:

	* src/qurt/qurt.c (benchmark): Make result a global.
	(result): New global.
Fix compiler warnings in rijndael.

Ambiguous statements, incorrect parameter and variables types, and
unused variables.

ChangeLog:

	* src/rijndael/aes.c (c_name): Add parenthesis to make precedence
	more obvious.
	* src/rijndael/aesxam.c (fillrand): Change types parameters, to
	match how function is used.
	(encfile, decfile, main): Change type of parameters and variables,
	to match how function is used.  Remove unused variables.
Fix compiler warnings in sglib-* tests.

Missing includes, unused variables, and defined but unused locals.

ChangeLog:

	* src/sglib-arraybinsearch/arraybinsearch.c (benchmark): Make
	found a global.
	(found): New global.
	* src/sglib-arraysort/arraysort.c (benchmark): Remove unused
	locals.
	* src/sglib-arraysort/sglib.h (GLIB_ARRAY_QUICK_SORT): Remove
	unused variable.
	* src/sglib-arraysort1/arraysort1.c (benchmark): Remove unused
	variables.
	* src/sglib-arraysort1/sglib.h (SGLIB___ARRAY_HEAP_DOWN): Remove
	unused variable.
	* src/sglib-dllist/dllist.c: Add missing stdlib.h include.
	* src/sglib-dllist/sglib.h (SGLIB_LIST_LEN, SGLIB_DL_LIST_SORT):
	Remove unused variable.
	* src/sglib-hashtable/hashtable.c: Add stdlib.h include.
	(benchmark): Remove unused variables.
	* src/sglib-hashtable/sglib.h (SGLIB_LIST_LEN): Remove unused
	variables.
	* src/sglib-listinsertsort/listinsertsort.c: Add stdlib.h include.
	(benchmark): Remove unused variables.
	* src/sglib-listinsertsort1/listinsertsort1.c: Add stdlib.h
	include.
	(benchmark): Remove unused variable.
	* src/sglib-listinsertsort1/sglib.h (SGLIB_LIST_LEN): Remove
	unused variables.
	* src/sglib-listsort/listsort.c: Add stdlib.h include.
	(benchmark): Remove unused variables.
	* src/sglib-queue/queue.c: Add stdlib.h include.
	* src/sglib-queue/sglib.h (SGLIB___ARRAY_HEAP_DOWN): Remove unused
	variable.
	* src/sglib-rbtree/rbtree.c: Add stdlib.h include.
	(benchmark): Remove unused variables.
	* src/sglib-rbtree/sglib.h:
	(SGLIB___RBTREE_FIX_INSERTION_DISCREPANCY): Remove unused
	variables, including definitions that are then never used.
	(SGLIB___RBTREE_FIX_DELETION_DISCREPANCY): Likewise.
Fix compiler warnings in sha test.

Missing include.

ChangeLog:

	* src/sha/sha.c: Add stdlib.h include.