Skip to content

Commit

Permalink
msvc-compatible warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
scootermon committed Jan 23, 2024
1 parent fc2fb66 commit 690269a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cc-test/src/compile_warning.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#warning "if you see this, cargo_warnings(false) didn't do its job"
#if _MSC_VER
# pragma message("if you see this, cargo_warnings(false) didn't do its job")
#else
# warning "if you see this, cargo_warnings(false) didn't do its job"
#endif

void compile_warning(void) {}

0 comments on commit 690269a

Please sign in to comment.