FreeBSD/contrib/gcc/c-common.c
/* Check that the function argument PARAM (which is operand number
   PARAM_NUM) is non-null.  This is called by check_function_nonnull
   via check_function_arguments_recurse.  */
Check that the function argument PARAM (which is operand number
PARAM_NUM) is non-null.  This is called by check_function_nonnull
via check_function_arguments_recurse.
Check that the function argument PARAM ( which is operand number PARAM_NUM ) is non - null . This is called by check_function_nonnull via check_function_arguments_recurse .
static void
check_nonnull_arg (void * ARG_UNUSED (ctx), tree param,
		   unsigned HOST_WIDE_INT param_num)
{
  if (TREE_CODE (TREE_TYPE (param)) != POINTER_TYPE &&
      TREE_CODE (TREE_TYPE (param)) != BLOCK_POINTER_TYPE)
   return;
  if (integer_zerop (param))
    warning (OPT_Wnonnull, "null argument where non-null required "
	     "(argument %lu)", (unsigned long) param_num);
}
static void check_nonnull_arg ( void * ARG_UNUSED ( ctx ) , tree param , unsigned HOST_WIDE_INT param_num ) { if ( TREE_CODE ( TREE_TYPE ( param ) ) != POINTER_TYPE && TREE_CODE ( TREE_TYPE ( param ) ) != BLOCK_POINTER_TYPE ) return ; if ( integer_zerop ( param ) ) warning ( OPT_Wnonnull , " " " " , ( unsigned long ) param_num ) ; }
Check that the function argument PARAM (which is operand number
PARAM_NUM) is non-null.
Check that the function argument PARAM ( which is operand number PARAM_NUM ) is non - null .
/* Just skip checking the argument if it's not a pointer.  This can
     happen if the "nonnull" attribute was given without an operand
     list (which means to check every pointer argument).  */ /* APPLE LOCAL begin blocks 5925781 */ /* APPLE LOCAL end blocks 5925781 */