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

fixes a zero-length format string warning (gcc-4.9 confirmed) #130

Closed

Conversation

namore
Copy link

@namore namore commented Oct 24, 2014

The warning causes the build of kyua to fail due to -Werror being set:

$ make
(...)
testers/atf_helpers.c: In function ‘atfu_print_config_head’:
testers/atf_helpers.c:169:9: error: zero-length gnu_printf format string [-Werror=format-zero-length]
         atf_utils_create_file(name, "");
         ^
cc1: all warnings being treated as errors
Makefile:6029: recipe for target 'testers/testers_atf_helpers-atf_helpers.o' failed
make[1]: *** [testers/testers_atf_helpers-atf_helpers.o] Error 1
make[1]: Leaving directory '/home/namor/clones/kyua_namore'
Makefile:3448: recipe for target 'all' failed
make: *** [all] Error 2
$ gcc --version
gcc (Debian 4.9.1-16) 4.9.1
(...)

causes the build of kyua to fail due to -Werror being set.
@jmmv
Copy link
Member

jmmv commented Oct 26, 2014

Thanks for the fix.

If you want me to be able to accept your pull request, please go to:

https://github.com/jmmv/kyua/wiki/Contributing

and follow the instructions and guidelines in there.

@jmmv
Copy link
Member

jmmv commented Nov 19, 2015

This is now obsolete given that HEAD has no more .c files.

@jmmv jmmv closed this Nov 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants