• Sam Ravnborg's avatar
    [PATCH] Remove 'strchr' warning from reiserfs · 3584199a
    Sam Ravnborg authored
    Reiserfs emits a warning about strchr being defined but not used.  I
    finally tracked down the reason for this.  gcc - when seeing strstr(x,
    "%") recognized that the second parameter is a char, and therefore uses
    strchr instead of strstr.  The workaround to avoid the warning is to
    replace the call to strstr with strchr - which is OK.
    
    This hides the warning, and brings us down to 6 warnings for a make
    defconfig bzImage.
    3584199a
prints.c 21.2 KB