notcurses_init(): only warn on unknown options

This commit is contained in:
nick black 2020-10-27 14:24:00 -04:00
parent c7adde423a
commit b245c8191c
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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){