From d20915d6f2a5be8d2d10bf2d88c197be48438e9b Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Tue, 25 Jan 2022 08:52:02 -0600 Subject: [PATCH] Fix two 'old-style-definition' compile warning (#2807) Fix compile warnings in ext/puma_http11/mini_ssl.c and ext/puma_http11/puma_http11.c. --- ext/puma_http11/mini_ssl.c | 2 +- ext/puma_http11/puma_http11.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/puma_http11/mini_ssl.c b/ext/puma_http11/mini_ssl.c index 3bcb9125..4d260322 100644 --- a/ext/puma_http11/mini_ssl.c +++ b/ext/puma_http11/mini_ssl.c @@ -50,7 +50,7 @@ const rb_data_type_t engine_data_type = { }; #ifndef HAVE_SSL_GET1_PEER_CERTIFICATE -DH *get_dh2048() { +DH *get_dh2048(void) { /* `openssl dhparam -C 2048` * -----BEGIN DH PARAMETERS----- * MIIBCAKCAQEAjmh1uQHdTfxOyxEbKAV30fUfzqMDF/ChPzjfyzl2jcrqQMhrk76o diff --git a/ext/puma_http11/puma_http11.c b/ext/puma_http11/puma_http11.c index 6520f5c3..19242dd4 100644 --- a/ext/puma_http11/puma_http11.c +++ b/ext/puma_http11/puma_http11.c @@ -451,7 +451,7 @@ VALUE HttpParser_body(VALUE self) { void Init_mini_ssl(VALUE mod); #endif -void Init_puma_http11() +void Init_puma_http11(void) { VALUE mPuma = rb_define_module("Puma");