Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.
/ readsb Public archive

fix warnings when compiling with gcc8 #14

Merged
merged 1 commit into from
Jun 27, 2019

Commits on Jun 26, 2019

  1. fix warnings when compiling with gcc8

    E.g. when compiling with gcc8 with warnings as errors you'll get the following:
    
        mode_s.c: In function 'nav_modes_to_string':
        mode_s.c:1626:9: error: 'strncat' specified bound 10 equals source length [-Werror=stringop-overflow=]
        strncat(buf, "autopilot ", 10);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    This error is indicating that you should be using strcat instead of strncat
    since the length of source is same as the bound.
    nnathan committed Jun 26, 2019
    Configuration menu
    Copy the full SHA
    e3c3eb8 View commit details
    Browse the repository at this point in the history