makedepend: Changes to 'master'

Alan Coopersmith alanc at kemper.freedesktop.org
Tue Feb 12 18:38:52 PST 2013


 main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 897e25de0cf27bd345130912a6da34b0c802a0ca
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Tue Feb 12 18:33:44 2013 -0800

    Store len in a size_t instead of an int in redirect()
    
    Fixes clang warnings about converting back & forth:
    
    main.c:761:8: warning: implicit conversion loses integer precision: 'size_t'
          (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
            len = strlen(line);
                ~ ^~~~~~~~~~~~
    main.c:763:41: warning: implicit conversion changes signedness: 'int' to
          'size_t' (aka 'unsigned long') [-Wsign-conversion]
                    if (*buf == '#' && strncmp(line, buf, len) == 0)
                                       ~~~~~~~            ^~~
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>



More information about the xorg-commit mailing list