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

[1.0] libct/nsenter: fix unused-result warning #3169

Merged
merged 1 commit into from
Aug 18, 2021

Commits on Aug 17, 2021

  1. libct/nsenter: fix unused-result warning

    Commit 2bab4a5 resulted in a warning from gcc:
    
    	nsexec.c: In function ‘write_log’:
    	nsexec.c:171:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
    	  171 |  write(logfd, json, ret);
    	      |  ^~~~~~~~~~~~~~~~~~~~~~~
    
    As there's nothing we can or want to do in case write fails,
    let's just tell the compiler we're not going to use it.
    
    Fixes: 2bab4a5
    Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
    (cherry picked from commit db8330c)
    Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
    kolyshkin committed Aug 17, 2021
    Configuration menu
    Copy the full SHA
    13b45cb View commit details
    Browse the repository at this point in the history