Project

General

Profile

Bug #11441

th_tools: NULL pointer errors

Added by Toomas Soome 5 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

Build errors with NULL pointer:

    th_define.c: In function 'walk_callback':
    th_define.c:1694:39: error: comparison between pointer and integer [-Werror]
       if (strcmp(driver_name, warg->name) == NULL &&
                                           ^~
    th_define.c: In function 'main':
    th_define.c:2117:35: error: comparison between pointer and integer [-Werror]
        else if (strcmp(optarg, "PIO") == NULL)
                                       ^~
    th_define.c:2119:35: error: comparison between pointer and integer [-Werror]
        else if (strcmp(optarg, "DMA") == NULL)
                                       ^~
    th_define.c:2121:47: error: comparison between pointer and integer [-Werror]
        else if (strcmp(optarg, "U4FT_ACC_NO_PIO") == NULL)
                                                   ^~
    th_define.c:2123:47: error: comparison between pointer and integer [-Werror]
        else if (strcmp(optarg, "U4FT_ACC_NO_DMA") == NULL)
                                                   ^~

    th_manage.c: In function 'main':
    th_manage.c:92:45: error: comparison between pointer and integer [-Werror]
        if (strcmp(argv[2], cmd_table[i].string) == NULL) {
                                                 ^~
    th_manage.c:118:45: error: comparison between pointer and integer [-Werror]
        if (strcmp(argv[3], cmd_table[i].string) == NULL) {
                                                 ^~
    cc1: all warnings being treated as errors

Also available in: Atom PDF