diff options
author | Russ Allbery <eagle@eyrie.org> | 2018-04-22 20:50:00 -0700 |
---|---|---|
committer | Russ Allbery <eagle@eyrie.org> | 2018-04-22 20:50:00 -0700 |
commit | 9b8536991719cab3b8636f3b7c924d5bbe37d28a (patch) | |
tree | bd57e1ed38516bbb8eec2df8dd8c17a6ae15f0aa /ruby | |
parent | 3f59a8928f819a034f9c69826fc67305be0546e3 (diff) |
Fix warnings under Clang
Flesh out support for Clang warnings and compile cleanly under Clang
with most warnings enabled (-Weverything with some exclusions).
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/remctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ruby/remctl.c b/ruby/remctl.c index d691e69..9737621 100644 --- a/ruby/remctl.c +++ b/ruby/remctl.c @@ -5,9 +5,10 @@ * simple and complex forms of the API. * * Original implementation by Anthony M. Martinez <twopir@nmt.edu> - * Copyright 2010 Anthony M. Martinez <twopir@nmt.edu> + * Copyright 2018 Russ Allbery <eagle@eyrie.org> * Copyright 2010, 2011, 2012, 2013 * The Board of Trustees of the Leland Stanford Junior University + * Copyright 2010 Anthony M. Martinez <twopir@nmt.edu> * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, provided @@ -66,7 +67,7 @@ static ID AAccache, AAsource_ip, AAtimeout; static ID Ahost, Aport, Aprincipal; /* Map the remctl_output type constants to strings. */ -const struct { +static const struct { enum remctl_output_type type; const char *name; } OUTPUT_TYPE[] = { |