pike.git/
src/
program.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-10-22
2014-10-22 17:18:28 by Arne Goedeke <el@laramies.com>
a6a9b5594daf3e125b2cb0edce70567b5d56dcb6 (
6
lines) (+
5
/-
1
)
[
Show
|
Annotate
]
Branch:
8.0
Fix -Wglobbered warnings.
One of them was actually legitimate.
1781:
static struct node_s *index_modules(struct pike_string *ident, struct mapping **module_index_cache,
-
int num_used_modules,
+
const
int num_used_modules,
struct svalue *modules)
-
+
/* num_used_modules is declared const here to convince the compiler that it is not
+
* modified in between setjmp() and longjmp(). This prevents -Wglobbered warnings.
+
*/
{ if(*module_index_cache) {