Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning fixes #1227

Closed
wants to merge 2 commits into from
Closed

Warning fixes #1227

wants to merge 2 commits into from

Commits on Jan 22, 2014

  1. lib/utils_base.c: if asprintf fails, string is undefined

    if asprintf fails, string content becomes invalid. we need
    to check if it ran OK by checking the returned value.
    
    in case of fail, asprintf returns -1, otherwise the number
    of writen bytes is returned.
    
    also, on ubuntu 13.10 i've receiving a lot of warnings:
    
    "warning: ignoring return value of ‘asprintf’"
    
    this patches fixes some of them
    
    Signed-off-by: Ricardo Maraschini <ricardo.maraschini@gmail.com>
    ricardomaraschini committed Jan 22, 2014
    Copy the full SHA
    6620812 View commit details
    Browse the repository at this point in the history
  2. plugins/utils.h: avoiding warnings on empty printf statements

    while compiling i keep receiving an warning statement as follow:
    
    warning: zero-length gnu_printf format string
    
    using an unorthodox method to remove them
    
    Signed-off-by: Ricardo Maraschini <ricardo.maraschini@gmail.com>
    ricardomaraschini committed Jan 22, 2014
    Copy the full SHA
    32fddba View commit details
    Browse the repository at this point in the history