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

Warning/wunused variable #54

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
4cf28db
Merge tag 'v1.5.2J' into develop
n-isaka Apr 19, 2019
ce17366
コンパイルオプションの文字列連結を修正
KoyamaNobo Jul 16, 2019
4ad50b8
Merge pull request #44 from Yamamame/develop
n-isaka Jul 17, 2019
f19b85f
fix(libcob): NATIONAL項目のMOVEのメモリ違反の修正
Aug 9, 2019
6f3a875
Merge pull request #45 from opensourcecobol/feature/fix_national_move…
ytr-sakamoto Aug 9, 2019
05c0a93
Create workflows
Shraddha-2405 May 9, 2022
9f51468
Create workflow.yml
Shraddha-2405 May 9, 2022
aa02482
Create COBOL85 tests
Shraddha-2405 May 9, 2022
ed1d0a0
Update workflow.yml
Shraddha-2405 May 10, 2022
b3eaf40
Update workflow.yml
Shraddha-2405 May 10, 2022
1a33e4e
Update workflow.yml
Shraddha-2405 May 10, 2022
7e53cee
Update workflow.yml
Shraddha-2405 May 10, 2022
b45eeb6
Update workflow.yml
Shraddha-2405 May 10, 2022
9f8b457
add newcob.val
Shraddha-2405 May 10, 2022
b5815bc
Modify and add newcob.val
Shraddha-2405 May 10, 2022
0e83fda
Update workflow.yml
Shraddha-2405 May 10, 2022
81da2db
Delete COBOL85 tests
Shraddha-2405 May 10, 2022
03ae2ed
Delete workflows
Shraddha-2405 May 10, 2022
c7b9fa4
[#50] Add CI for NIST COBOL85 test
Shraddha-2405 May 10, 2022
93def13
Improve workflow.yml
yutaro-sakamoto May 12, 2022
4f06d3a
Create workflows.yml
Shraddha-2405 May 25, 2022
f013a7d
line 42 wparanthesis warning resolved
Shraddha-2405 Jun 2, 2022
43d46a5
Line 598 wimplicit-function-declaration warning resolved
Shraddha-2405 Jun 3, 2022
1fda6b8
Line 964 wimplicit declaration warning resolved
Shraddha-2405 Jun 3, 2022
7809b9f
Line 1834 wformat-overflow warning resolved
Shraddha-2405 Jun 3, 2022
bdeaaf9
The changes in the line 42 is modified to the original statement
Shraddha-2405 Jun 3, 2022
e12797b
wformat_truncation warning message resolved
Shraddha-2405 Jun 8, 2022
1558341
Wformat-oveflow warning resolved
Shraddha-2405 Jun 10, 2022
526eb0c
Warning resolved in line 65
Shraddha-2405 Jun 10, 2022
9be4678
Wformat overflow warning resolved at the line 65
Shraddha-2405 Jun 10, 2022
341d574
Updated changes
Shraddha-2405 Jun 10, 2022
ed730c1
wformat-overflow warning resolved at the line 1834 and 36
Shraddha-2405 Jun 15, 2022
7358f5a
wunused-constant-variable warning resolved at the line 224, 259 and 294
Shraddha-2405 Jun 15, 2022
40f04c8
git push error updated changes
Shraddha-2405 Jun 15, 2022
5b3090c
Add the changes which cause error
Shraddha-2405 Jun 15, 2022
338e39d
I have updated this file with the changes mentioned in the previous p…
Shraddha-2405 Jun 16, 2022
e431ee8
Delete cobcrun
Shraddha-2405 Jun 16, 2022
61ace42
Delete cobcrun.c
Shraddha-2405 Jun 16, 2022
2b2488a
Delete fileio.c
Shraddha-2405 Jun 16, 2022
6c4d02b
Delete intrinsic.c
Shraddha-2405 Jun 16, 2022
eb639fa
Delete screenio.c
Shraddha-2405 Jun 16, 2022
827e554
The variables unused has been removed
Shraddha-2405 Jun 17, 2022
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
32 changes: 32 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: NIST COBOL85 tests
on:
push:
pull_request:
types: [opened, reopened, review_requested]

jobs:
run-tests:
runs-on: ubuntu-latest
steps:
# Checkout opensource COBOL
- name: Checkout opensource COBOL
uses: actions/checkout@v2

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential libncurses-dev libgmp-dev bison flex gettext automake autoconf

- name: Install opensource COBOL
run: |
cd vbisam
./configure --prefix=/usr/
sudo make install
cd ../
./configure --prefix=/usr/ --with-vbisam
sudo make install

- name: run NIST tests
run: |
cd tests/cobol85
make test
158 changes: 0 additions & 158 deletions bin/cobcrun.c

This file was deleted.

2 changes: 1 addition & 1 deletion cobc/cobc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ process_command_line (const int argc, char *argv[])
#ifdef _MSC_VER
strcat (cob_define_flags, "/I ");
#else
strcat (cob_define_flags, "-I");
strcat (cob_define_flags, " -I");
#endif
strcat (cob_define_flags, "\"");
strcat (cob_define_flags, optarg);
Expand Down
109 changes: 4 additions & 105 deletions cobc/typeck.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,111 +220,10 @@ static const char *const bin_sub_funcs[] = {
"cob_subswp_s56_binary",
"cob_subswp_s64_binary"
};

static const char *const align_bin_compare_funcs[] = {
"cob_cmp_u8_binary",
"cob_cmp_align_u16_binary",
"cob_cmp_u24_binary",
"cob_cmp_align_u32_binary",
"cob_cmp_u40_binary",
"cob_cmp_u48_binary",
"cob_cmp_u56_binary",
"cob_cmp_align_u64_binary",
"cob_cmp_s8_binary",
"cob_cmp_align_s16_binary",
"cob_cmp_s24_binary",
"cob_cmp_align_s32_binary",
"cob_cmp_s40_binary",
"cob_cmp_s48_binary",
"cob_cmp_s56_binary",
"cob_cmp_align_s64_binary",
"cob_cmp_u8_binary",
"cob_cmpswp_align_u16_binary",
"cob_cmpswp_u24_binary",
"cob_cmpswp_align_u32_binary",
"cob_cmpswp_u40_binary",
"cob_cmpswp_u48_binary",
"cob_cmpswp_u56_binary",
"cob_cmpswp_align_u64_binary",
"cob_cmp_s8_binary",
"cob_cmpswp_align_s16_binary",
"cob_cmpswp_s24_binary",
"cob_cmpswp_align_s32_binary",
"cob_cmpswp_s40_binary",
"cob_cmpswp_s48_binary",
"cob_cmpswp_s56_binary",
"cob_cmpswp_align_s64_binary"
};

static const char *const align_bin_add_funcs[] = {
"cob_add_u8_binary",
"cob_add_align_u16_binary",
"cob_add_u24_binary",
"cob_add_align_u32_binary",
"cob_add_u40_binary",
"cob_add_u48_binary",
"cob_add_u56_binary",
"cob_add_align_u64_binary",
"cob_add_s8_binary",
"cob_add_align_s16_binary",
"cob_add_s24_binary",
"cob_add_align_s32_binary",
"cob_add_s40_binary",
"cob_add_s48_binary",
"cob_add_s56_binary",
"cob_add_align_s64_binary",
"cob_add_u8_binary",
"cob_addswp_u16_binary",
"cob_addswp_u24_binary",
"cob_addswp_u32_binary",
"cob_addswp_u40_binary",
"cob_addswp_u48_binary",
"cob_addswp_u56_binary",
"cob_addswp_u64_binary",
"cob_add_s8_binary",
"cob_addswp_s16_binary",
"cob_addswp_s24_binary",
"cob_addswp_s32_binary",
"cob_addswp_s40_binary",
"cob_addswp_s48_binary",
"cob_addswp_s56_binary",
"cob_addswp_s64_binary"
};

static const char *const align_bin_sub_funcs[] = {
"cob_sub_u8_binary",
"cob_sub_align_u16_binary",
"cob_sub_u24_binary",
"cob_sub_align_u32_binary",
"cob_sub_u40_binary",
"cob_sub_u48_binary",
"cob_sub_u56_binary",
"cob_sub_align_u64_binary",
"cob_sub_s8_binary",
"cob_sub_align_s16_binary",
"cob_sub_s24_binary",
"cob_sub_align_s32_binary",
"cob_sub_s40_binary",
"cob_sub_s48_binary",
"cob_sub_s56_binary",
"cob_sub_align_s64_binary",
"cob_sub_u8_binary",
"cob_subswp_u16_binary",
"cob_subswp_u24_binary",
"cob_subswp_u32_binary",
"cob_subswp_u40_binary",
"cob_subswp_u48_binary",
"cob_subswp_u56_binary",
"cob_subswp_u64_binary",
"cob_sub_s8_binary",
"cob_subswp_s16_binary",
"cob_subswp_s24_binary",
"cob_subswp_s32_binary",
"cob_subswp_s40_binary",
"cob_subswp_s48_binary",
"cob_subswp_s56_binary",
"cob_subswp_s64_binary"
};
/**
* * Add a sample comment
*
*/

/* functions */

Expand Down
1 change: 0 additions & 1 deletion libcob/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,6 @@ cob_init_call (void)
#ifndef COB_ALT_HASH
call_table = cob_malloc (sizeof (struct call_hash *) * HASH_SIZE);
#endif

call_filename_buff = cob_malloc (CALL_FILEBUFF_SIZE);
call_entry_buff = cob_malloc (COB_SMALL_BUFF);
call_entry2_buff = cob_malloc (COB_SMALL_BUFF);
Expand Down
2 changes: 1 addition & 1 deletion libcob/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,7 @@ cob_accept_time (cob_field *f)
time_t t;
#if defined(HAVE_SYS_TIME_H) && defined(HAVE_GETTIMEOFDAY)
struct timeval tmv;
char buff2[8];
char buff2[17];
#endif
#endif
char s[12];
Expand Down
Loading