@@ -281,10 +281,6 @@ C_MODE_END
281281#error "Please add -fno-exceptions to CXXFLAGS and reconfigure/recompile"
282282#endif
283283
284- #if defined(_lint ) && !defined(lint )
285- #define lint
286- #endif
287-
288284#ifndef stdin
289285#include <stdio.h>
290286#endif
@@ -448,22 +444,19 @@ extern "C" int madvise(void *addr, size_t len, int behav);
448444/*
449445 Suppress uninitialized variable warning without generating code.
450446*/
451- #if defined(__GNUC__ )
452- /* GCC specific self-initialization which inhibits the warning. */
447+ #if defined(__GNUC__ ) && !defined(WITH_UBSAN )
448+ /*
449+ GCC specific self-initialization which inhibits the warning.
450+ clang and static analysis will complain loudly about this
451+ so compile those under WITH_UBSAN.
452+ */
453453#define UNINIT_VAR (x ) x= x
454- #elif defined(_lint ) || defined( FORCE_INIT_OF_VARS )
454+ #elif defined(FORCE_INIT_OF_VARS )
455455#define UNINIT_VAR (x ) x= 0
456456#else
457457#define UNINIT_VAR (x ) x
458458#endif
459459
460- /* This is only to be used when resetting variables in a class constructor */
461- #if defined(_lint ) || defined(FORCE_INIT_OF_VARS )
462- #define LINT_INIT (x ) x= 0
463- #else
464- #define LINT_INIT (x )
465- #endif
466-
467460#if !defined(HAVE_UINT )
468461#undef HAVE_UINT
469462#define HAVE_UINT
@@ -505,7 +498,7 @@ C_MODE_END
505498#endif
506499
507500/* We might be forced to turn debug off, if not turned off already */
508- #if ( defined(FORCE_DBUG_OFF ) || defined( _lint ) ) && !defined(DBUG_OFF )
501+ #if defined(FORCE_DBUG_OFF ) && !defined(DBUG_OFF )
509502# define DBUG_OFF
510503# ifdef DBUG_ON
511504# undef DBUG_ON
@@ -527,7 +520,7 @@ typedef int my_socket; /* File descriptor for sockets */
527520#endif
528521/* Type for functions that handles signals */
529522#define sig_handler RETSIGTYPE
530- #if defined(__GNUC__ ) && !defined( _lint )
523+ #if defined(__GNUC__ )
531524typedef char pchar ; /* Mixed prototypes can take char */
532525typedef char puchar ; /* Mixed prototypes can take char */
533526typedef char pbool ; /* Mixed prototypes can take char */
0 commit comments