Skip to content
  • Kir Kolyshkin's avatar
    f18fce45
    maps007 test: fix for clang · f18fce45
    Kir Kolyshkin authored
    
    
    CLang doesn't like explicit NULL pointer dereference:
    > maps007.c:176:2: error: indirection of non-volatile null pointer will be deleted, not trap [-Werror,-Wnull-dereference]
    >         *((int *) 0) = 0;
    >         ^~~~~~~~~~~~
    > maps007.c:176:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile'
    >
    
    Apparently, we need to add volatile to make it happy.
    
    Signed-off-by: default avatarKir Kolyshkin <kir@openvz.org>
    Signed-off-by: default avatarPavel Emelyanov <xemul@virtuozzo.com>
    f18fce45
    maps007 test: fix for clang
    Kir Kolyshkin authored
    
    
    CLang doesn't like explicit NULL pointer dereference:
    > maps007.c:176:2: error: indirection of non-volatile null pointer will be deleted, not trap [-Werror,-Wnull-dereference]
    >         *((int *) 0) = 0;
    >         ^~~~~~~~~~~~
    > maps007.c:176:2: note: consider using __builtin_trap() or qualifying pointer with 'volatile'
    >
    
    Apparently, we need to add volatile to make it happy.
    
    Signed-off-by: default avatarKir Kolyshkin <kir@openvz.org>
    Signed-off-by: default avatarPavel Emelyanov <xemul@virtuozzo.com>
Loading