We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab78f46 commit f012319Copy full SHA for f012319
1 file changed
lib/libvcc/vmodtool.py
@@ -1244,8 +1244,8 @@ def vmod_data(self, fo):
1244
vcs = json.dumps(self.vcs())
1245
vmd = "Vmod_%s_Data" % self.modname
1246
fo.write('\n')
1247
- fo.write('__attribute__((section(".vmod_vcs"), used))\n')
1248
- fo.write('const char vmod_vcs[] = %s;' % vcs)
+ fo.write('static const char vmod_vcs[] ')
+ fo.write('__attribute__((section(".vmod_vcs"), used)) = %s;\n' % vcs)
1249
for i in (714, 759, 765):
1250
fo.write("/*lint -esym(%d, %s) */\n" % (i, vmd))
1251
fo.write("\nextern const struct vmod_data %s;\n" % vmd)
0 commit comments