Barack Obama. John Moore/Getty Images President Barack Obama said Wednesday he thinks votes for third-party candidates Gary Johnson and Jill Stein are votes for Donald Trump.

The president made the comments during an interview with Steve Harvey on Harvey's radio program.

"If you don't vote, that's a vote for Trump," he told Harvey. "If you vote for a third-party candidate, that's a vote for Trump."

Johnson, the Libertarian nominee, and Stein, the Green Party nominee, are garnering 7.4% and 2.4%, respectively, in the RealClearPolitics four-way race polling average.

Both candidates were not included in the first debate after not meeting the necessary polling threshold.