From dde6ca0dac7261f4e97d371656fa2fadbd234c79 Mon Sep 17 00:00:00 2001 From: Eidolon Date: Tue, 2 Jan 2024 13:38:55 -0600 Subject: [PATCH] Remove all gcc pragma interface GCC docs say these are not only obsolete but counter-productive for their intended use case since GCC 2.7.2. https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/C_002b_002b-Interface.html --- src/d_think.h | 4 ---- src/d_ticcmd.h | 4 ---- src/i_addrinfo.h | 4 ---- src/i_net.h | 4 ---- src/i_system.h | 4 ---- src/i_video.h | 4 ---- src/p_pspr.h | 4 ---- src/p_saveg.h | 4 ---- src/p_tick.h | 4 ---- src/r_bsp.h | 4 ---- src/r_data.h | 4 ---- src/r_segs.h | 4 ---- src/r_sky.h | 4 ---- src/r_state.h | 4 ---- src/r_textures.h | 4 ---- src/w_wad.h | 4 ---- 16 files changed, 64 deletions(-) diff --git a/src/d_think.h b/src/d_think.h index 29b67718e..f3dda9380 100644 --- a/src/d_think.h +++ b/src/d_think.h @@ -23,10 +23,6 @@ extern "C" { #endif -#ifdef __GNUG__ -#pragma interface -#endif - // // Experimental stuff. // To compile this as "ANSI C with classes" we will need to handle the various diff --git a/src/d_ticcmd.h b/src/d_ticcmd.h index b3cfe61ec..2cde49abc 100644 --- a/src/d_ticcmd.h +++ b/src/d_ticcmd.h @@ -21,10 +21,6 @@ extern "C" { #endif -#ifdef __GNUG__ -#pragma interface -#endif - #define MAXPREDICTTICS 12 // Button/action code definitions. diff --git a/src/i_addrinfo.h b/src/i_addrinfo.h index 8a1ba8f4b..948da7967 100644 --- a/src/i_addrinfo.h +++ b/src/i_addrinfo.h @@ -16,10 +16,6 @@ extern "C" { #endif -#ifdef __GNUG__ -#pragma interface -#endif - #ifndef AI_PASSIVE #define AI_PASSIVE 0x01 #endif diff --git a/src/i_net.h b/src/i_net.h index b8792bbdf..aa0b732cd 100644 --- a/src/i_net.h +++ b/src/i_net.h @@ -14,10 +14,6 @@ #ifndef __I_NET__ #define __I_NET__ -#ifdef __GNUG__ -#pragma interface -#endif - #include "doomdef.h" #include "command.h" diff --git a/src/i_system.h b/src/i_system.h index f9161ece0..b21e31830 100644 --- a/src/i_system.h +++ b/src/i_system.h @@ -21,10 +21,6 @@ extern "C" { #endif -#ifdef __GNUG__ -#pragma interface -#endif - /** \brief max quit functions */ #define MAX_QUIT_FUNCS 16 diff --git a/src/i_video.h b/src/i_video.h index cd9cbecd2..c5185dfe0 100644 --- a/src/i_video.h +++ b/src/i_video.h @@ -35,10 +35,6 @@ hwr2::HardwareState* main_hardware_state(); extern "C" { #endif -#ifdef __GNUG__ -#pragma interface -#endif - typedef enum { /// Software diff --git a/src/p_pspr.h b/src/p_pspr.h index 9d3b78ea4..13c322523 100644 --- a/src/p_pspr.h +++ b/src/p_pspr.h @@ -35,10 +35,6 @@ extern "C" { #endif -#ifdef __GNUG__ -#pragma interface -#endif - /// \brief Frame flags: only the frame number - 0 to 256 (Frames from 0 to 63, Sprite2 number uses 0 to 127 plus FF_SPR2SUPER) #define FF_FRAMEMASK 0xff diff --git a/src/p_saveg.h b/src/p_saveg.h index d73cb9a8b..1db0708ea 100644 --- a/src/p_saveg.h +++ b/src/p_saveg.h @@ -18,10 +18,6 @@ extern "C" { #endif -#ifdef __GNUG__ -#pragma interface -#endif - // 1024 bytes is plenty for a savegame // ...but we'll be accomodating of a heavily replaced Round Queue. #define SAVEGAMESIZE (2048) diff --git a/src/p_tick.h b/src/p_tick.h index ab36c2e51..17e767db2 100644 --- a/src/p_tick.h +++ b/src/p_tick.h @@ -20,10 +20,6 @@ extern "C" { #endif -#ifdef __GNUG__ -#pragma interface -#endif - extern tic_t leveltime; extern boolean thinkersCompleted; diff --git a/src/r_bsp.h b/src/r_bsp.h index d01fa97f0..5002a4d8a 100644 --- a/src/r_bsp.h +++ b/src/r_bsp.h @@ -20,10 +20,6 @@ extern "C" { #endif -#ifdef __GNUG__ -#pragma interface -#endif - extern seg_t *curline; extern side_t *sidedef; extern line_t *linedef; diff --git a/src/r_data.h b/src/r_data.h index 17368bb3c..e327e9330 100644 --- a/src/r_data.h +++ b/src/r_data.h @@ -22,10 +22,6 @@ extern "C" { #endif -#ifdef __GNUG__ -#pragma interface -#endif - // Store lists of lumps for F_START/F_END etc. struct lumplist_t { diff --git a/src/r_segs.h b/src/r_segs.h index b9052cfa4..c5eee53c3 100644 --- a/src/r_segs.h +++ b/src/r_segs.h @@ -18,10 +18,6 @@ extern "C" { #endif -#ifdef __GNUG__ -#pragma interface -#endif - transnum_t R_GetLinedefTransTable(fixed_t alpha); void R_RenderMaskedSegRange(drawseg_t *ds, INT32 x1, INT32 x2); void R_RenderThickSideRange(drawseg_t *ds, INT32 x1, INT32 x2, ffloor_t *pffloor); diff --git a/src/r_sky.h b/src/r_sky.h index abf29b508..5a4f5e9ee 100644 --- a/src/r_sky.h +++ b/src/r_sky.h @@ -20,10 +20,6 @@ extern "C" { #endif -#ifdef __GNUG__ -#pragma interface -#endif - /// \brief SKY, store the number for name. #define SKYFLATNAME "F_SKY1" diff --git a/src/r_state.h b/src/r_state.h index 50b53a66f..7c10afc57 100644 --- a/src/r_state.h +++ b/src/r_state.h @@ -23,10 +23,6 @@ extern "C" { #endif -#ifdef __GNUG__ -#pragma interface -#endif - // // Refresh internal data structures, for rendering. // diff --git a/src/r_textures.h b/src/r_textures.h index fcda710cc..5a2dffd79 100644 --- a/src/r_textures.h +++ b/src/r_textures.h @@ -23,10 +23,6 @@ extern "C" { #endif -#ifdef __GNUG__ -#pragma interface -#endif - #define MISSING_TEXTURE "AASMELLY" // Replacement for invalid textures // A single patch from a texture definition, diff --git a/src/w_wad.h b/src/w_wad.h index 85f7bfb21..144b212c6 100644 --- a/src/w_wad.h +++ b/src/w_wad.h @@ -22,10 +22,6 @@ extern "C" { #endif -#ifdef __GNUG__ -#pragma interface -#endif - // a raw entry of the wad directory // NOTE: This sits here and not in w_wad.c because p_setup.c makes use of it to load map WADs inside PK3s. #if defined(_MSC_VER)