Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: 5.0.2-test-3, arithmetic on pointer to void



It seems I'm the only one not exclusively using gcc, although I admit I
use it more often than not too.  Just noticed the following with HP's C
compiler (and for the record, it even has -Agcc flag that accepts the code).

Creating "init.c", line 287: error #3143: arithmetic on pointer to void or function type
      void *ptr = base + (optno < 0 ? -optno : optno);
                       ^
1 error detected in the compilation of "init.c".



Messages sorted by: Reverse Date, Date, Thread, Author