> > Getting ~0 back is strictly less bad than getting stack rubble because > > at least it's obviously wrong. > > But then why not change things so there's no issue anymore? Plus I'm not > sure how / whether "obviously wrong" would manifest. I expect it would > be an entirely unobvious boot hang, or other misbehavior.
+1 for changing these APIs to make it clear when an error happened instead of returning magic value. Otherwise yea clearly should not use init-to-self anywhere just to silence other warnings.. Tamas