The MSVC detects mismatch of const qualifiers in cfg_map_{first,next}clause
functions just in BIND 9.11. As this is harmless in this particular
case, just disable the warning for these two functions.
The warnings reported:
lib\isccfg\parser.c(2160): warning C4090: '=': different 'const' qualifiers
lib\isccfg\parser.c(2184): warning C4090: '=': different 'const' qualifiers
return (isc_symtab_count(map->symtab));
}
+#if _WIN32
+#pragma warning(disable : 4090)
+#endif
const char *
cfg_map_firstclause(const cfg_type_t *map, const void **clauses,
unsigned int *idx)
return (NULL);
}
return ((*clauseset)[*idx].name);
+#if _WIN32
+#pragma warning(default : 4090)
+#endif
}
+#if _WIN32
+#pragma warning(disable : 4090)
+#endif
const char *
cfg_map_nextclause(const cfg_type_t *map, const void **clauses,
unsigned int *idx)
return (NULL);
}
return ((*clauseset)[*idx].name);
+#if _WIN32
+#pragma warning(default : 4090)
+#endif
}
/* Parse an arbitrary token, storing its raw text representation. */