X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/3832000d8a0d417dbfda0ca2d26bc7d66f7f4741..33e3ac9056f046affd69e3b8871275e5e2697aa4:/utils/macros.3 diff --git a/utils/macros.3 b/utils/macros.3 index bd4145a..a2a9003 100644 --- a/utils/macros.3 +++ b/utils/macros.3 @@ -16,7 +16,6 @@ macros \- useful macros .\" @MUFFLE_WARNINGS_DECL .\" @MUFFLE_WARNINGS_EXPR .\" @MUFFLE_WARNINGS_STMT -.\" @GCC_VERSION_P .\" @GCC_WARNING .SH SYNOPSIS .nf @@ -40,8 +39,8 @@ macros \- useful macros .BI "MUFFLE_WARNINGS_EXPR(" warns ", " expr ")" .BI "MUFFLE_WARNINGS_STMT(" warns ", " stmt ")" -.BI "int GCC_VERSION_P(" maj ", " min ");" .BI "GCC_WARNING(" option ")" +.BI "CLANG_WARNING(" option ")" .fi .SH DESCRIPTION .SS Utilities @@ -163,7 +162,19 @@ lists (see above). It takes a string-literal argument .I option naming a GCC warning option, e.g., .BR """\-Wdiv-by-zero""" . +.PP +The +.B CLANG_WARNING +is similar, except that it works with the Clang compiler. +.PP +Note that including +.B +also defines the compiler-test macros in +.BR ; +see +.BR compiler (3). .SH "SEE ALSO" -.BR mLib (3). +.BR mLib (3), +.BR compiler (3). .SH "AUTHOR" Mark Wooding,