diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-23 17:27:24 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-23 17:36:26 +0900 |
commit | fe3ff5afb07e171fd950623c69abfbabbb2762a3 (patch) | |
tree | e7f285cf9cf0f84375e20c5d572e171b8af021e4 /lib | |
parent | dc95b57a68da6999ce6a1542b3ad81c51429cc99 (diff) | |
download | ruby-fe3ff5afb07e171fd950623c69abfbabbb2762a3.tar.gz |
Suppress paranoid warnings for external/3rd-party libraries
[Feature #15665]
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index ea5a8ac2ce..bf95484aa8 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -2735,7 +2735,7 @@ MESSAGE ## # A C main function which does no work - MAIN_DOES_NOTHING = config_string('MAIN_DOES_NOTHING') || "int main(int argc, char **argv)\n{\n return 0;\n}" + MAIN_DOES_NOTHING = config_string('MAIN_DOES_NOTHING') || "int main(int argc, char **argv)\n{\n return !!argv[argc];\n}" UNIVERSAL_INTS = config_string('UNIVERSAL_INTS') {|s| Shellwords.shellwords(s)} || %w[int short long long\ long] |