diff options
author | Rob Landley <rob@landley.net> | 2014-11-24 17:23:23 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-11-24 17:23:23 -0600 |
commit | 9ab563b8a170aee0b8b82ca32e9f70a689112b6a (patch) | |
tree | ab10dc069b2bd42108e4b422f59ec255249ccb6f /toys/posix/expand.c | |
parent | f6c28b6e0017ac36190ee31132721a1c9e30f2b6 (diff) | |
download | toybox-9ab563b8a170aee0b8b82ca32e9f70a689112b6a.tar.gz |
Tweak the "ignoring return value" fortify workaround for readlinkat.
We zero the buffer and if the link read fails that's left alone, so
it's ok for the symlink not to be there. Unfortunately, typecasting the
return value to (void) doesn't shut up gcc, and having an if(); with the
semicolon on the same line doesn't shut up llvm. (The semicolon on a new
line would, but C does not have significant whitespace and I'm not going
to humor llvm if it plans to start.)
So far, empty curly brackets consistently get the warning to shut up.
Diffstat (limited to 'toys/posix/expand.c')
0 files changed, 0 insertions, 0 deletions