1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Delyan Angelov 2f6757a56a Revert "cgen: fix all -Wmissing-variable-declarations (#5802)"
This reverts commit ae349ca6ba432e427eb2f81c8bf6d96a524fefa8.

Fixing these warnings, unfortunately also means, that hot code
(which reloads a shared library during runtime) can not use V
constants, because the private static C variables in the shared
library will not be initialized by _vinit(), which is only called
by the main V program.

For example in examples/hot_reload/bounce.v, using `gx.blue`,
defined as:
`    blue   = Color { r:   0, g:   0, b: 255 }`
... will instead use a const with all 0 fields (i.e. a black color).
2020-08-18 11:55:55 +03:00
..
2020-08-12 18:43:41 +02:00
2020-07-24 01:55:55 +02:00
2020-08-18 01:08:58 +02:00
2020-08-09 03:58:14 +02:00
2020-08-09 04:12:29 +02:00
2020-07-24 08:45:28 +03:00
2020-08-18 01:08:58 +02:00
2020-07-07 16:55:32 +02:00
2020-07-24 13:29:47 +03:00
2020-06-03 08:44:44 +03:00
2020-07-14 00:16:31 +02:00
2020-08-17 20:16:18 +02:00
2020-06-29 11:03:09 +02:00