aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-11-24 17:23:23 -0600
committerRob Landley <rob@landley.net>2014-11-24 17:23:23 -0600
commit9ab563b8a170aee0b8b82ca32e9f70a689112b6a (patch)
treeab10dc069b2bd42108e4b422f59ec255249ccb6f /main.c
parentf6c28b6e0017ac36190ee31132721a1c9e30f2b6 (diff)
downloadtoybox-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 'main.c')
0 files changed, 0 insertions, 0 deletions