Fix -DNEDUG builds
- assert() is macro which is defined as empty, while panic is always present. I added an explicit abort() after the macro to make sure the function never returns in case of wrong flags. - Fixed gcc build with -NDEBUG, -Os for ARM. * A few 'may be used uninitialized' messages * A few new missing support library functions where added in libminc. Change-Id: I69fcda2cd3888390b7ddeff4c0cd849105ce86ff
This commit is contained in:
5
external/bsd/flex/dist/scanopt.c
vendored
5
external/bsd/flex/dist/scanopt.c
vendored
@@ -715,6 +715,11 @@ int scanopt (svoid, arg, optindex)
|
||||
struct _aux *auxp;
|
||||
int is_short;
|
||||
int opt_offset = -1;
|
||||
#if defined(__minix)
|
||||
/* triggers a 'may be used uninitialized', when compiled with gcc,
|
||||
* asserts off, and -Os. */
|
||||
is_short = 0;
|
||||
#endif /* defined(__minix) */
|
||||
|
||||
s = (struct _scanopt_t *) svoid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user