Skip to content

Commit

Permalink
VC++ warns about GCC #pragmas...
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Oct 27, 2020
1 parent e386862 commit 1569d5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions radiantcore/model/picomodel/lib/pm_md2.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,11 @@ static int _md2_canload( PM_PARAMS_CANLOAD )


// _md2_load() loads a quake2 md2 model file.
#ifdef __linux__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-truncation"
#pragma GCC diagnostic ignored "-Wformat-truncation"
#endif

static picoModel_t *_md2_load( PM_PARAMS_LOAD )
{
Expand Down Expand Up @@ -568,7 +570,9 @@ static picoModel_t *_md2_load( PM_PARAMS_LOAD )
return picoModel;
}

#ifdef __linux__
#pragma GCC diagnostic pop
#endif

/* pico file format module definition */
const picoModule_t picoModuleMD2 =
Expand Down

0 comments on commit 1569d5a

Please sign in to comment.