fstab-generator: quiesce false-positive -Werror=format-nonliteral (#5336)
authorMartin Pitt <martinpitt@users.noreply.github.com>
Tue, 14 Feb 2017 01:58:22 +0000 (02:58 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 14 Feb 2017 01:58:22 +0000 (20:58 -0500)
commit4a027e1935c630e71efdc829c4b72492ad25cbde
treee93c189aedb2abcc85042548ee0317944ae1ef53
parentae3251851aa64138f415567b0a0d0df143182803
fstab-generator: quiesce false-positive -Werror=format-nonliteral (#5336)

Commit ae3251851 changed the fprintf() format argument into a variable
which triggers a gcc 6.3 warning/error:

  src/fstab-generator/fstab-generator.c:243:17: error: format not a string literal,
  argument types not checked [-Werror=format-nonliteral]
                 fprintf(f, format, res);

This is a false positive, as the function is only being called with
constant (not user-definable) arguments which are valid format strings.
src/fstab-generator/fstab-generator.c