------------------------------------------------------------------------- RecConfigWarnIfUnregistered ------------------------------------------------------------------------- Generate a warning if the record is a configuration name/value but is not registered.
| 1117 | //------------------------------------------------------------------------- |
| 1118 | /// Generate a warning if the record is a configuration name/value but is not registered. |
| 1119 | void |
| 1120 | RecConfigWarnIfUnregistered() |
| 1121 | { |
| 1122 | RecDumpRecords( |
| 1123 | RECT_CONFIG, |
| 1124 | [](RecT, void *, int registered_p, const char *name, int, RecData *) -> void { |
| 1125 | if (!registered_p) { |
| 1126 | Warning("Unrecognized configuration value '%s'", name); |
| 1127 | } |
| 1128 | }, |
| 1129 | nullptr); |
| 1130 | } |
| 1131 | |
| 1132 | //------------------------------------------------------------------------- |
| 1133 | // i_am_the_record_owner, only used for librecords_p.a |
no test coverage detected