• Wu Zhangjin's avatar
    MIPS: Loongson: Add return value check for strict_strtoul() · ec798125
    Wu Zhangjin authored
    cc1: warnings being treated as errors
    arch/mips/loongson/common/env.c: In function 'prom_init_env':
    arch/mips/loongson/common/env.c:49: error: ignoring return value of 'strict_strtol', declared with attribute warn_unused_result
    arch/mips/loongson/common/env.c:50: error: ignoring return value of 'strict_strtol', declared with attribute warn_unused_result
    arch/mips/loongson/common/env.c:51: error: ignoring return value of 'strict_strtol', declared with attribute warn_unused_result
    arch/mips/loongson/common/env.c:52: error: ignoring return value of 'strict_strtol', declared with attribute warn_unused_result
    Signed-off-by: default avatarWu Zhangjin <wuzhangjin@gmail.com>
    Cc: linux-mips <linux-mips@linux-mips.org>
    Patchwork: https://patchwork.linux-mips.org/patch/1762/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    ec798125
env.c 2.07 KB