Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some lint annotations #1698

Merged
merged 3 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions addons/common/fnc_directCall.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ private "_CBA_return";

isNil {
// Wrap the _CBA_code in an extra call block to prevent problems with exitWith and apply
//IGNORE_PRIVATE_WARNING ["_x"];
_CBA_return = ([_x] apply {call _CBA_code}) select 0;
};

Expand Down
1 change: 1 addition & 0 deletions addons/common/init_perFrameHandler.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ if (isMultiplayer) then {
[QFUNC(missionTimePFH), {
SCRIPT(missionTimePFH_server);
if (time != GVAR(lastTime)) then {
//IGNORE_PRIVATE_WARNING ["_tickTime"];
CBA_missionTime = CBA_missionTime + (_tickTime - GVAR(lastTickTime));
GVAR(lastTime) = time; // used to detect paused game
};
Expand Down
2 changes: 1 addition & 1 deletion addons/common/test.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define DEBUG_MODE_FULL
#include "script_component.hpp"

#define TESTS ["common", "config", "inventory", "weaponComponents", "position", "ret", "macro_is_x"]
#define TESTS ["common", "config", "inventory", "weaponComponents", "position", "ret.inc", "macro_is_x"]

SCRIPT(test-common);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"
SCRIPT(test_ret);

// execVM "\x\cba\addons\common\test_ret.sqf";
// execVM "\x\cba\addons\common\test_ret.inc.sqf";

private ["_funcName", "_result"];

Expand Down
1 change: 1 addition & 0 deletions addons/hashes/fnc_parseYAML.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ private _parse = {
};

if !(_error) then {
//IGNORE_PRIVATE_WARNING ["_data"];
_data pushBack _value;
_mode = YAML_MODE_STRING;
};
Expand Down
1 change: 1 addition & 0 deletions addons/versioning/fnc_version_check.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "script_component.hpp"

// _key, _value are injected by the CBA_fnc_hashEachPair
//IGNORE_PRIVATE_WARNING ["_key", "_value"];

private _localValue = [GVAR(versions), _key] call CBA_fnc_hashGet;
TRACE_3("Version Check",_key,_value,_localValue);
Expand Down