Skip to content
Snippets Groups Projects
  • George Joseph's avatar
    4aa54168
    GCC12: Fixes for 16+ · 4aa54168
    George Joseph authored
    Most issues were in stringfields and had to do with comparing
    a pointer to an constant/interned string with NULL.  Since the
    string was a constant, a pointer to it could never be NULL so
    the comparison was always "true".  gcc now complains about that.
    
    There were also a few issues where determining if there was
    enough space for a memcpy or s(n)printf which were fixed
    by defining some of the involved variables as "volatile".
    
    There were also a few other miscellaneous fixes.
    
    ASTERISK-30044
    
    Change-Id: Ia081ca1bcfb329df6487c4660aaf1944309eb570
    4aa54168
    History
    GCC12: Fixes for 16+
    George Joseph authored
    Most issues were in stringfields and had to do with comparing
    a pointer to an constant/interned string with NULL.  Since the
    string was a constant, a pointer to it could never be NULL so
    the comparison was always "true".  gcc now complains about that.
    
    There were also a few issues where determining if there was
    enough space for a memcpy or s(n)printf which were fixed
    by defining some of the involved variables as "volatile".
    
    There were also a few other miscellaneous fixes.
    
    ASTERISK-30044
    
    Change-Id: Ia081ca1bcfb329df6487c4660aaf1944309eb570