summaryrefslogtreecommitdiff
path: root/Embed.cmake
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-09-14 15:21:51 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-09-15 11:36:11 +0300
commitb988d71699f82c281289294f6797dd5bc3d98e44 (patch)
tree3410b8008f500f4f215d075c59dac59d5644f8c3 /Embed.cmake
parent61b0b049c05da051ea50166aa1c4966939162685 (diff)
Removed questionable forced modification of const data
The embedded data blocks were declared as global const variables, but the compiler was forced to initialize them as non-const data. There is no real need to keep these const, so let's not do this.
Diffstat (limited to 'Embed.cmake')
-rw-r--r--Embed.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Embed.cmake b/Embed.cmake
index c75f19e4..2322e32c 100644
--- a/Embed.cmake
+++ b/Embed.cmake
@@ -123,13 +123,13 @@ static const iEmbedChunk chunks_Embed_[] = {
123 file (APPEND ${EMB_C} "};\n\n") 123 file (APPEND ${EMB_C} "};\n\n")
124 foreach (fn ${ARGV}) 124 foreach (fn ${ARGV})
125 embed_getname (resName ${fn}) 125 embed_getname (resName ${fn})
126 file (APPEND ${EMB_H} "extern const iBlock ${resName};\n") 126 file (APPEND ${EMB_H} "extern iBlock ${resName};\n")
127 file (APPEND ${EMB_C} "const iBlock ${resName};\n") 127 file (APPEND ${EMB_C} "iBlock ${resName};\n")
128 endforeach (fn) 128 endforeach (fn)
129 file (APPEND ${EMB_C} "\nstatic iBlock *blocks_Embed_[] = {\n") 129 file (APPEND ${EMB_C} "\nstatic iBlock *blocks_Embed_[] = {\n")
130 foreach (fn ${ARGV}) 130 foreach (fn ${ARGV})
131 embed_getname (resName ${fn}) 131 embed_getname (resName ${fn})
132 file (APPEND ${EMB_C} " iConstCast(iBlock *, &${resName}),\n") 132 file (APPEND ${EMB_C} " &${resName},\n")
133 endforeach (fn) 133 endforeach (fn)
134 file (APPEND ${EMB_C} [[ 134 file (APPEND ${EMB_C} [[
135}; 135};