12 Commits

Author SHA1 Message Date
Y_Less
f1da832ae9 -E warnings as errors. 2017-10-24 21:18:07 +02:00
Yashas
1efcf90a28 new error msg for returning arrays of unknown size 2017-09-29 16:21:13 +05:30
Zeex
3a4878f54b Fix clang warnings 2017-02-11 19:32:10 +06:00
Double V
7c81e6573d Fix some errors with static enums in a block (#141)
Signed-off-by: VVWVV <d0u61ev@gmail.com>
2017-01-30 00:20:46 +07:00
Zeex
2dd0e8c6af Merge branch 'feature_enum_static' of https://github.com/VVWVV/pawn into VVWVV-feature_enum_static 2017-01-29 02:46:59 +06:00
Zeex
f9e9c181dd Mark symbols as read when they are passed as function arguments
This is an improved version of the earlier fix for bug #131.

Also should fix https://github.com/Misiur/YSI-Includes/issues/154.
2017-01-28 12:59:49 +06:00
VVWVV
6d2aa15a3f #134: Proposal: enum limited to single file scope
Signed-off-by: VVWVV <d0u61ev@gmail.com>
2017-01-23 14:20:33 +03:00
Zeex
25b21eb0aa Improve reparse check
Only reparse if the function has a tagged result (old behavior) or a
global variable is passed as one of its arguments at some point before
declaration/definition.

Also warn if need to reparse so that developers are aware of potential
performance hit.

Fixes #131.
2017-01-22 17:26:14 +06:00
Zeex
867f6902f3 Remove string compression
This removes all scpack-packed strings and moves normal strings from
.scp files to corresponding .c files. The code responding for packing
and unpacking is gone as well.

If you have enough memory to run a SA-MP server you most likely have
more than enough of it to not worry about saving a few additional KBs
of text. Besides, these strings were kind of hard to navigate / edit,
and you could easily forget to regenerate them with scpack (though it
could be automated).
2015-04-06 16:38:08 +06:00
Zeex
634f40953b Introduce #pragma warning
This pragma lets you to enable or disable a specific warning by its
unique number (same as in error messages).

Syntax: #pragma warning (push|pop|enable XXX|disable XXX)

#pragma warning push - save current warnings
#pragma warning pop - restore warnings
#pragma warning enable XXX - enable warning XXX
#pragma warning disable XXX - disable warning XXX
2014-01-05 02:58:42 +07:00
Zeex
6943995219 Fix missing newline in error message 2014-01-04 16:01:31 +07:00
Zeex
766b96bcf3 Lower case directory names 2013-09-19 13:06:46 +07:00