Giel van Schijndel
ecf1c79aad
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>
2011-07-13 05:07:44 +02:00
..
2011-04-23 12:10:25 +02:00
2011-04-23 12:10:25 +02:00
2011-06-27 14:12:48 -04:00
2011-06-27 14:12:48 -04:00
2011-04-23 12:10:25 +02:00
2011-06-06 12:49:11 -05:00
2011-06-06 12:49:11 -05:00
2011-07-13 02:11:25 +02:00
2011-07-13 02:11:25 +02:00
2011-07-12 19:34:30 -07:00
2011-07-13 05:07:44 +02:00
2011-06-15 11:05:55 +02:00
2011-07-12 19:34:30 -07:00
2011-06-15 11:05:55 +02:00
2011-06-14 02:05:57 -07:00
2011-05-15 12:04:20 +02:00
2011-07-13 02:11:25 +02:00
2011-07-13 02:11:25 +02:00
2011-07-13 02:11:25 +02:00
2011-07-13 05:07:44 +02:00
2011-07-12 19:10:12 -07:00
2011-07-12 22:44:00 -04:00
2011-07-13 02:11:25 +02:00
2011-07-13 02:11:25 +02:00
2011-07-13 02:11:25 +02:00
2011-07-01 20:17:10 -04:00
2011-07-05 00:59:00 +02:00
2011-07-01 09:39:44 +02:00
2011-06-15 11:05:55 +02:00
2011-07-13 02:11:25 +02:00
2011-04-23 12:10:25 +02:00
2011-07-13 02:11:25 +02:00
2011-07-13 05:07:44 +02:00
2011-07-10 18:15:05 +02:00
2011-05-15 12:04:20 +02:00
2011-07-12 19:10:12 -07:00
2011-07-13 02:11:25 +02:00
2011-07-13 02:11:25 +02:00
2011-07-13 02:11:25 +02:00
2011-05-15 12:04:20 +02:00
2011-07-04 09:41:58 -04:00
2011-07-13 05:07:44 +02:00
2011-07-12 19:34:30 -07:00
2011-07-13 02:11:25 +02:00