Replace #warning with the standard #error.

This commit is contained in:
Petteri Aimonen
2012-07-05 18:19:38 +03:00
parent 7c5bb6541a
commit 72cca8d783
2 changed files with 3 additions and 7 deletions

3
pb.h
View File

@@ -34,8 +34,7 @@
#endif
#if PB_MAX_REQUIRED_FIELDS < 64
#warning You should not lower PB_MAX_REQUIRED_FIELDS from the default value (64). \
The automatic checks against too low value will not be active.
#error You should not lower PB_MAX_REQUIRED_FIELDS from the default value (64).
#endif
/* List of possible field types. These are used in the autogenerated code.