patch 7.4.2062
Problem: Using dummy variable to compute struct member offset.
Solution: Use offsetof().
diff --git a/src/spell.c b/src/spell.c
index af96891..f6ab0df 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -600,8 +600,7 @@
char_u wc_word[1]; /* word, actually longer */
} wordcount_T;
-static wordcount_T dumwc;
-#define WC_KEY_OFF (unsigned)(dumwc.wc_word - (char_u *)&dumwc)
+#define WC_KEY_OFF offsetof(wordcount_T, wc_word)
#define HI2WC(hi) ((wordcount_T *)((hi)->hi_key - WC_KEY_OFF))
#define MAXWORDCOUNT 0xffff