If your receive this warning when programming in PHP/Joomla, it's because you're expecting a result from a query that doesn't generate one. For example,

$result = $db->loadObject();

Remove this line and the warning goes away.