diff options
| author | wrmr | 2024-11-03 18:09:24 -0500 | 
|---|---|---|
| committer | wrmr | 2024-11-03 18:09:24 -0500 | 
| commit | 9ee9d3c7dec6090316d21c2eed40992372ac3efa (patch) | |
| tree | b4fc259a573e2407dc3be0ecefa061e1d89830bd | |
| parent | cfcab548584953c1a7e40eef7b9a209d4e5d1402 (diff) | |
warn about unsupported doc types
| -rw-r--r-- | parse.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| @@ -1,4 +1,5 @@  #include "parse.h" +#include "err.h"  int parse_doc(enum doc_type type, struct doc *d, const buf_t *b) {  	switch (type) { @@ -14,6 +15,7 @@ int parse_doc(enum doc_type type, struct doc *d, const buf_t *b) {  		}  		goto ok;  	default: +		perr("unsupported doctype");  		goto err;  	}  ok: | 
