On 12-07-25 1:02 PM, Chris Peterson wrote:
gcc did not add nullptr until gcc 4.6. For gcc <= 4.5 (like Android's
gcc 4.4), we should consider using gcc's magic __null:

   #define nullptr __null

Also, gcc 4.7 added a new -Wzero-as-null-pointer-constant warning to
flag uses of literal 0 as a pointer (in C++ code). We could enable this
warning as a helpful reminder to use nullptr.

Nice!  Can you please file bugs on both of these issues?

Thanks!
Ehsan
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to