Often errors and warnings would be used inside other prepropcessor constructs.

Example:

<?warning Must define the variable variableThatMustBeDefined ?>
<?ifndef variableThatMustBeDefined ?>
    <?error You did not define the variable variableThatMustBeDefined ?>
<?endif ?>