EX-23.1 4 d836828dex231.htm EX-23.1 EX-23.1

Exhibit 23.1

Consent of Ernst & Young LLP, Independent Registered Public Accounting Firm

We consent to the incorporation by reference in the Registration Statement (Post-Effective Amendment No. 1 on Form S-8 to the Registration Statement (Form S-4, No. 333-233435)) pertaining to the Old Line Bancshares, Inc. 2004 Equity Incentive Plan and the Old Line Bancshares, Inc. 2010 Equity Incentive Plan of our reports dated March 1, 2019, with respect to the consolidated financial statements of WesBanco, Inc., and the effectiveness of internal control over financial reporting of WesBanco, Inc., included in its Annual Report (Form 10-K) for the year ended December 31, 2018, filed with the Securities and Exchange Commission.

/s/ Ernst & Young LLP

Pittsburgh, Pennsylvania

November 22, 2019