core: fixed gcc compiler warnings about ununsed vars #3984

fixed for core part and ido part

whatthecommit: this doesn't really make things faster, but I tried

refs: #3984

Conflicts:
	base/nebmods.c
	base/notifications.c
	module/idoutils/src/dbqueries.c
classic-ui: cleand up gcc error messages, also added -Wno-unused-result to gcc options #3984

* removed useless "dummy" var from cgis
* added "-Wno-unused-result" gcc option global to all systems supportiong -Wall
* removed some unused vars (gcc 4.6)

refs: #3984

Conflicts:
	configure
	configure.in
classic-ui: fixed left over gcc warnings for now #3984

these need further investigation.

whatthecommit: Same as last commit with changes

refs: #3984
Added Changelog entry for #3984

refs: #3984
Revert "run indent-all.sh"

This reverts commit b9db2fda564055d9ed15f5bbbb5a1802a7241617.
Merge branch 'fix/gcc-warnings-3984' into next