fix warnings: expression result unused [-Wunused-value]
authorGiel van Schijndel <me@mortis.eu>
Fri, 24 Jun 2011 17:56:23 +0000 (19:56 +0200)
committerGiel van Schijndel <me@mortis.eu>
Wed, 13 Jul 2011 03:07:44 +0000 (05:07 +0200)
commitecf1c79aada222ccbf93b0f15d98339431d1a881
tree7a338d5d98e085b5fe521c11bf3e0a438e5e6add
parentdf4018141752de57cd7ce59ef556f541016facc1
fix warnings: expression result unused [-Wunused-value]

In the assert()s take advantage of the fact that string constants
("string") are effectively of type 'const char []', which when used in
an expression yield a non-NULL pointer.

An assertion that should always fail can thus be formulated as:
  assert(!"fail);

An assertion where a text message should be added to the expression can
be written as such:
  assert("message" && expression);

Signed-off-by: Giel van Schijndel <me@mortis.eu>
src/db.h
src/main.cpp
src/script.h
src/util.h