notcurses_init(): only warn on unknown options

pull/1083/head
nick black 4 years ago
parent c7adde423a
commit b245c8191c
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -894,8 +894,7 @@ notcurses* notcurses_init(const notcurses_options* opts, FILE* outfp){
return NULL;
}
if(opts->flags >= (NCOPTION_NO_FONT_CHANGES << 1u)){
fprintf(stderr, "Provided an illegal Notcurses option, refusing to start\n");
return NULL;
fprintf(stderr, "Warning: unknown Notcurses options %016lx\n", opts->flags);
}
notcurses* ret = malloc(sizeof(*ret));
if(ret == NULL){

Loading…
Cancel
Save