Skip to content

Commit

Permalink
Fix c warnings - debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Dec 28, 2024
1 parent d285a08 commit 16e303c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/input.salam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
عنوان = «سلام دنیا - خوش آمدید»
زبان = «فارسی»
جهت = «راست به چپ»
// جهت = «چپ به راست»
// جهت = «چپ به راست»
رنگ پس زمینه = «سبز»

جعبه:
Expand Down
4 changes: 2 additions & 2 deletions src/ast_layout.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,9 +643,9 @@ bool ast_layout_node_type_is_mother(ast_layout_node_type_t type) {

ast_layout_attribute_type_t ast_layout_attribute_enduser_name_in_node_to_type(char *name, ast_layout_node_type_t parent_node_type)
{
for (int i = 0; i < map_size; i++) {
for (size_t i = 0; i < map_size; i++) {
if (layout_map[i].type == parent_node_type) {
for (int j = 0 ; j < layout_map[i].count_allowed_arguments; j++) {
for (size_t j = 0 ; j < layout_map[i].count_allowed_arguments; j++) {
ast_layout_attribute_type_t argument_type = layout_map[i].allowed_arguments[j];
char *enduser_name = ast_layout_attribute_type_to_enduser_name(argument_type);

Expand Down
2 changes: 1 addition & 1 deletion src/downloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ bool download(FILE *fp, const char *port, const char *hostname,
return false;
}

int written =
size_t written =
snprintf(request, request_size, "GET %s HTTP/1.0\r\nHost: %s\r\n\r\n",
path, hostname);

Expand Down
4 changes: 4 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ void help(char *app) {
*/
void update(int argc, char **argv)
{
DEBUG_ME;
if (argc) {}
if (argv) {}

printf("Check latest version...\n");

const char *output_file = "update.tmp";
Expand Down

0 comments on commit 16e303c

Please sign in to comment.