Important: this related Meta Stack Exchange post.
Code you post on Stack Overflow is licensed "cc-by-sa 3.0 with attribution required". Now this may pose problems for people wanting to use my contributions depending on what license they have for their own software. I want to prevent such obstacles for others as much as possible, and found this advice on uber-meta which comes down to placing a dual-license notice at the bottom of answers.
Comments on this SO meta question also suggest leaving a notice along these lines...
Unless noted otherwise, all my questions and answers on Stack Overflow are also released under X.
(where X is wtfpl, public domain, or some other very permissive license)
...in your user profile is enough.
Now, to the question: what's the best way to make sure as many people as possible can use my SO contributions, with as little as possible restrictions?
Is leaving such a comment in your profile enough? And on a side note: wouldn't this pose problems if your answer uses / builds on snippets from other answers or even other open source libraries?