From 2af474e8d07eaa92a93953024685c66d1dbc15f5 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 2 Nov 2019 13:31:44 +0200 Subject: parser: get rid of "stealing" atoms This requires (well, at least implemented by) casting away `const` which is undefined behavior, and clang started to warn about it. The micro optimization didn't save too many allocations, anyway. Signed-off-by: Ran Benita --- src/atom.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/atom.h') diff --git a/src/atom.h b/src/atom.h index 1bf8e49..f936911 100644 --- a/src/atom.h +++ b/src/atom.h @@ -40,8 +40,7 @@ xkb_atom_t atom_lookup(struct atom_table *table, const char *string, size_t len); xkb_atom_t -atom_intern(struct atom_table *table, const char *string, size_t len, - bool steal); +atom_intern(struct atom_table *table, const char *string, size_t len); const char * atom_text(struct atom_table *table, xkb_atom_t atom); -- cgit v1.2.1