# Wunknown-pragmas

Determines whether a warning is issued if an unknown #pragma directive is used.

## Syntax

Linux: | -Wunknown-pragmas -Wno-unknown-pragmas

macOS: | -Wunknown-pragmas -Wno-unknown-pragmas

Windows: | None

## Arguments

None

## Default

-Wunknown-pragmas | A warning is issued if an unknown #pragma directive is used.

## Description

This option determines whether a warning is issued if an unknown #pragma directive is used.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Compiler Diagnostic Options