]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
annotate `isc_region_compare` with the gcc access attribute
authorAydın Mercan <aydin@isc.org>
Mon, 2 Mar 2026 05:35:33 +0000 (08:35 +0300)
committerAydın Mercan <aydin@isc.org>
Thu, 12 Mar 2026 11:34:46 +0000 (14:34 +0300)
lib/isc/include/isc/region.h

index 4767b5f8900dfc046f1b5dbe5d340a7dedb1a21a..51d25c5f1e6555cf616b89d7a6c85140599d9529 100644 (file)
@@ -15,6 +15,7 @@
 
 /*! \file isc/region.h */
 
+#include <isc/attributes.h>
 #include <isc/types.h>
 
 struct isc_region {
@@ -74,6 +75,8 @@ struct isc_consttextregion {
        } while (0)
 /*@}*/
 
+ISC_ATTR_ACCESS(read_only, 1)
+ISC_ATTR_ACCESS(read_only, 2)
 int
 isc_region_compare(isc_region_t *r1, isc_region_t *r2);
 /*%<