aboutsummaryrefslogtreecommitdiff
path: root/xkbcomp
diff options
context:
space:
mode:
Diffstat (limited to 'xkbcomp')
-rw-r--r--xkbcomp/compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkbcomp/compat.c b/xkbcomp/compat.c
index 526224da1..ab84eb4d3 100644
--- a/xkbcomp/compat.c
+++ b/xkbcomp/compat.c
@@ -274,7 +274,7 @@ AddGroupCompat(CompatInfo * info, unsigned group, GroupCompatInfo * newGC)
{
return True;
}
- if (((gc->fileID == newGC->fileID) && (warningLevel > 0))
+ if (((gc->defined && gc->fileID == newGC->fileID) && (warningLevel > 0))
|| (warningLevel > 9))
{
WARN1("Compat map for group %d redefined\n", group + 1);