diff options
| author | gingerBill <bill@gingerbill.org> | 2022-12-18 22:49:10 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-12-18 22:49:10 +0000 |
| commit | c1f5be24e28c41efbbbe6d116d533b55d48bbf82 (patch) | |
| tree | c000ca55e7b69ea39a6e3a32714690b350708414 /src/common.cpp | |
| parent | 6cdec65ca1fd13a4d86d83a6715cbaaff7115cd7 (diff) | |
Remove dead code in the compiler
Diffstat (limited to 'src/common.cpp')
| -rw-r--r-- | src/common.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common.cpp b/src/common.cpp index 09203e633..3624446f1 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -50,6 +50,10 @@ gb_internal void debugf(char const *fmt, ...); #include "string.cpp" #include "range_cache.cpp" +#if defined(GB_SYSTEM_WINDOWS) + #pragma warning(push) + #pragma warning(disable: 4505) +#endif gb_internal gb_inline bool is_power_of_two(i64 x) { if (x <= 0) { @@ -900,3 +904,8 @@ gb_internal Slice<DistanceAndTarget> did_you_mean_results(DidYouMeanAnswers *d) } return slice_array(d->distances, 0, count); } + + +#if defined(GB_SYSTEM_WINDOWS) + #pragma warning(pop) +#endif
\ No newline at end of file |