Commit df008bc
committed
Add header paths for system libraries as SYSTEM
This ensures correct include ordering and hides warnings coming
from unrelated code. Specifically, it fixes build on FreeBSD,
which otherwise fails due to to problem in lcms code:
In file included from .../stratagus-3.3.1/src/action/action_defend.cpp:45:
In file included from .../stratagus/work/stratagus-3.3.1/src/include/ui.h:56:
In file included from .../stratagus-3.3.1/src/include/viewport.h:34:
In file included from .../stratagus-3.3.1/src/include/fow.h:39:
In file included from .../stratagus-3.3.1/src/include/video.h:228:
In file included from /usr/local/include/libmng.h:385:
In file included from /usr/local/include/libmng_types.h:181:
/usr/local/include/lcms.h:1238:29: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
typedef int (* _cmsSAMPLER)(register WORD In[],
^~~~~~~~~1 parent 44ddc09 commit df008bc
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
819 | | - | |
| 819 | + | |
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
| |||
825 | 825 | | |
826 | 826 | | |
827 | 827 | | |
828 | | - | |
| 828 | + | |
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
834 | | - | |
| 834 | + | |
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
840 | 840 | | |
841 | | - | |
| 841 | + | |
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
847 | | - | |
| 847 | + | |
848 | 848 | | |
849 | 849 | | |
850 | 850 | | |
| |||
0 commit comments