summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-04-19 17:04:33 +0100
committerTom Hacohen <tom@stosb.com>2016-04-19 17:15:28 +0100
commitcfd7b5700667049a4f98f6b660b6d7c310bafdbe (patch)
treec0a1593b92e2b1967b243a061291557a79bc3090
parent6f4f9bd0514b7ab96a690033a6a264c9f2c304b4 (diff)
downloadefl-devs/tasn/strict_eolian.tar.gz
Eolian: Turn on strict type checking.devs/tasn/strict_eolian
Thanks to q66 for the code. I'm stealing credit here because: 1. I'm lazy. 2. He's lazy and doesn't deserve it.
-rw-r--r--src/lib/eolian/database_validate.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c
index 8ce37a172f..b9657ee9af 100644
--- a/src/lib/eolian/database_validate.c
+++ b/src/lib/eolian/database_validate.c
@@ -174,18 +174,11 @@ _ef_map_cb(const Eina_Hash *hash EINA_UNUSED, const void *key EINA_UNUSED,
static Eina_Bool
_type_error(const Validator *vs, const Eolian_Type *tp, const char *msg)
{
- Eina_Bool weak = !getenv("EOLIAN_VALIDATE_STRICT");
if (vs->silent_types)
- return weak;
- if (!weak)
- {
- fprintf(stderr, "eolian:%s:%d:%d: %s\n", tp->base.file, tp->base.line,
- tp->base.column, msg);
- return EINA_FALSE;
- }
- eina_log_print(_eolian_log_dom, EINA_LOG_LEVEL_WARN, tp->base.file, "",
- tp->base.line, "%s at column %d", msg, tp->base.column);
- return EINA_TRUE;
+ return EINA_FALSE;
+ fprintf(stderr, "eolian:%s:%d:%d: %s\n", tp->base.file, tp->base.line,
+ tp->base.column, msg);
+ return EINA_FALSE;
}
static Eina_Bool