Disable -Werror by default

Installation of this gem if failing on my machine because -Werror is set. Installation should not fail because of warnings, although I understand this flag is useful during development.

There is no way to override this setting at the moment.

Log:

 gem install prometheus-client-mmap -v '0.9.3' --verbose
HEAD https://api.rubygems.org/api/v1/dependencies
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=prometheus-client-mmap
200 OK
Getting SRV record failed: DNS result has no information for _rubygems._tcp.api.rubygems.org
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/README.md
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/extconf.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/fast_mmaped_file.c
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/file_format.c
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/file_format.h
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/file_parsing.c
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/file_parsing.h
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/file_reading.c
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/file_reading.h
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/globals.h
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/mmap.c
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/mmap.h
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/rendering.c
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/rendering.h
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/utils.c
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/utils.h
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/value_access.c
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file/value_access.h
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/configuration.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/counter.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/formats/text.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/gauge.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/helper/entry_parser.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/helper/file_locker.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/helper/json_parser.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/helper/metrics_processing.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/helper/metrics_representation.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/helper/mmaped_file.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/helper/plain_file.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/histogram.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/label_set_validator.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/metric.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/mmaped_dict.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/mmaped_value.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/push.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/rack/collector.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/rack/exporter.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/registry.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/simple_value.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/summary.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/support/unicorn.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/uses_value_type.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/lib/prometheus/client/version.rb
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/hashmap/LICENSE
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/hashmap/README.md
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/hashmap/_config.yml
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/hashmap/src/hashmap.c
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/hashmap/src/hashmap.h
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/hashmap/test/Makefile
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/hashmap/test/hashmap_test.c
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/jsmn/LICENSE
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/jsmn/Makefile
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/jsmn/README.md
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/jsmn/example/jsondump.c
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/jsmn/example/simple.c
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/jsmn/jsmn.c
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/jsmn/jsmn.h
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/jsmn/library.json
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/jsmn/test/test.h
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/jsmn/test/tests.c
/home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/vendor/c/jsmn/test/testutil.h
Building native extensions. This could take a while...
current directory: /home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file
/home/toon/.rubies/ruby-2.4.4/bin/ruby -r ./siteconf20180724-20224-5ma4is.rb extconf.rb
creating Makefile
current directory: /home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file
make "DESTDIR=" clean
current directory: /home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3/ext/fast_mmaped_file
make "DESTDIR="
compiling fast_mmaped_file.c
In file included from /home/toon/.rubies/ruby-2.4.4/include/ruby-2.4.0/ruby.h:33,
                 from fast_mmaped_file.c:2:
/home/toon/.rubies/ruby-2.4.4/include/ruby-2.4.0/ruby/ruby.h:631:1: error: ‘const’ attribute on function returning ‘void’ [-Werror=attributes]
 CONSTFUNC(void rb_secure_update(VALUE));
 ^~~~~~~~~
In file included from /home/toon/.rubies/ruby-2.4.4/include/ruby-2.4.0/ruby/ruby.h:2012,
                 from /home/toon/.rubies/ruby-2.4.4/include/ruby-2.4.0/ruby.h:33,
                 from fast_mmaped_file.c:2:
/home/toon/.rubies/ruby-2.4.4/include/ruby-2.4.0/ruby/intern.h:257:1: error: ‘const’ attribute on function returning ‘void’ [-Werror=attributes]
 CONSTFUNC(void rb_error_untrusted(VALUE));
 ^~~~~~~~~
/home/toon/.rubies/ruby-2.4.4/include/ruby-2.4.0/ruby/intern.h:259:1: error: ‘const’ attribute on function returning ‘void’ [-Werror=attributes]
 CONSTFUNC(void rb_check_trusted(VALUE));
 ^~~~~~~~~
cc1: error: unrecognized command line option ‘-Wno-self-assign’ [-Werror]
cc1: error: unrecognized command line option ‘-Wno-constant-logical-operand’ [-Werror]
cc1: error: unrecognized command line option ‘-Wno-parentheses-equality’ [-Werror]
cc1: all warnings being treated as errors
make: *** [Makefile:242: fast_mmaped_file.o] Error 1
ERROR:  Error installing prometheus-client-mmap:
	ERROR: Failed to build gem native extension.

    Building has failed. See above output for more information on the failure.
make failed, exit code 2

Gem files will remain installed in /home/toon/.gem/ruby/2.4.4/gems/prometheus-client-mmap-0.9.3 for inspection.
Results logged to /home/toon/.gem/ruby/2.4.4/extensions/x86_64-linux/2.4.0-static/prometheus-client-mmap-0.9.3/gem_make.out