Davi Arnaut
3e9c52250a
Bug#45288: pb2 returns a lot of compilation warnings
...
Fix assorted warnings that are generated in optimized builds.
Most of it is silencing variables that are set but unused.
This patch also introduces the MY_ASSERT_UNREACHABLE macro
which helps the compiler to deduce that a certain piece of
code is unreachable.
include/my_compiler.h:
Use GCC's __builtin_unreachable if available. It allows
GCC to deduce the unreachability of certain code paths,
thus avoiding warnings that, for example, accused that a
variable could be used without being initialized (due to
unreachable code paths).
2010-10-20 16:21:40 -02:00
..
2010-08-04 15:58:09 +03:00
2006-12-23 20:20:40 +01:00
2009-07-31 15:28:15 -04:00
2009-12-20 19:02:15 +01:00
2007-05-10 12:59:39 +03:00
2008-05-20 20:36:26 +04:00
2007-05-10 12:59:39 +03:00
2009-06-19 17:58:46 +05:30
2007-07-25 01:58:12 +03:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2009-09-07 18:35:37 +02:00
2009-06-10 10:59:49 +02:00
2010-07-02 18:42:32 -03:00
2010-08-24 10:48:45 -03:00
2006-12-31 01:02:27 +01:00
2010-07-01 12:02:00 +04:00
2007-05-10 12:59:39 +03:00
2007-04-12 00:43:25 +02:00
2009-07-24 12:15:06 +05:30
2007-10-15 18:22:19 +03:00
2010-07-02 15:30:47 -03:00
2010-10-20 16:21:40 -02:00
2010-10-18 13:24:34 +02:00
2006-12-23 20:17:15 +01:00
2010-06-10 17:16:43 -03:00
2010-07-14 16:39:40 -03:00
2008-03-28 18:45:03 +02:00
2006-12-23 20:17:15 +01:00
2007-05-10 12:59:39 +03:00
2009-03-09 20:57:03 +02:00
2006-12-23 20:20:40 +01:00
2009-12-12 19:11:25 +01:00
2007-05-10 12:59:39 +03:00
2010-10-20 11:40:04 -02:00
2010-01-27 11:42:20 +01:00
2010-06-08 18:14:18 -03:00
2008-04-03 13:14:57 -04:00
2007-05-10 12:59:39 +03:00
2007-05-10 12:59:39 +03:00
2006-12-31 02:29:11 +01:00
2007-05-10 12:59:39 +03:00
2007-05-10 12:59:39 +03:00
2007-05-10 12:59:39 +03:00
2010-06-28 16:20:28 -03:00
2009-07-30 16:04:41 +05:30
2006-12-23 20:17:15 +01:00
2010-04-29 20:18:19 -03:00
2007-11-18 00:32:06 +04:00
2006-12-31 01:02:27 +01:00
2007-09-13 16:19:46 +02:00
2010-09-07 14:18:01 +07:00
2010-09-07 14:18:01 +07:00
2010-07-20 15:07:36 -03:00
2007-11-14 22:20:31 +04:00
2006-12-31 01:02:27 +01:00
2010-10-05 17:05:37 +03:00
2008-02-27 13:00:59 +04:00
2006-12-23 20:17:15 +01:00
2010-06-10 17:16:43 -03:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2008-02-19 18:45:11 +01:00
2009-04-14 14:05:32 +02:00
2007-04-27 19:09:39 +02:00
2009-11-20 13:09:50 +01:00