Search notes:

gcc: __attribute__((deprecated))

With __attribute__((deprecated)), gcc allows to declare variables, structs and functions as deprecated.
When the respective compilation unit is compiled with the -Wdeprecated-declaration, the compiler will print a warning like
main.c:11:11: warning: ‘tq84_struct’ is deprecated [-Wdeprecated-declarations]
    struct tq84_struct s;
struct tq84_struct {
  int i;
} __attribute__ ((deprecated));

__attribute__((deprecated)) int func() {
  return 42;
}

int main() {

   struct tq84_struct s;

   int    tq84_var   __attribute((deprecated));
   int    y;

   s.i      = 42;
   tq84_var = 42;
   y        = func();

}
Github repository about-gcc, path: /__attribute__/deprecated/main.c

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1745027937, '18.189.188.15', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/C-C-plus-plus/GCC/__attribute__/deprecated/index(60): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78