invalid-matrix.c: In function 'draw':
invalid-matrix.c:367:20: error: 'FE_INVALID' undeclared (first use in this function)
invalid-matrix.c:367:20: note: each undeclared identifier is reported only once for each function it appears in
At top level:
cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
make: *** [cairo_test_suite-invalid-matrix.o] Error 1
make: Leaving directory `/src/build/cairo/cairo-1.12.2/test'
make: *** [all-recursive] Error 1
according to musl libc author:
"C99 requires the FE_ macros to be defined if and only if the exception they correspond to is supported"
and since ARM doesn't necessarily support a FPU, this is optional.
the proper way to test is to check if each of the FE_ is defined before using it.
Created attachment 68478 [details] [review]
Patch which #defines all the undefined exception macros
Comments? Is this good enough?
thanks, that works.
Author: Uli Schlachter <email@example.com>
Date: Tue Oct 16 17:09:42 2012 +0200
test: Define optional exception classes
According to musl libc author:
"C99 requires the FE_ macros to be defined if and only if the exception they
correspond to is supported"
So we define these macros to 0 if they are not supported. Support for these FPU
exceptions is not necessary for correct functionality, but makes some tests less
Signed-off-by: Uli Schlachter <firstname.lastname@example.org>