Opened 9 years ago
Closed 9 years ago
#13668 closed Bug (fixed)
CKBuilder shows warnings when creating CKEditor package: WARNING - unreachable code
Reported by: | Wiktor Walc | Owned by: | Tade0 |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.5.4 |
Component: | General | Version: | 4.5.3 |
Keywords: | Cc: |
Description (last modified by )
Steps to reproduce
- Run ckbuilder to create CKEditor full package.
Note: you must use at least CKBuilder 2.3 in order to see errors.
Expected result
No warnings should be thrown.
Actual result
Unreachable code is detected.
Other details (browser, OS, CKEditor version, installed plugins)
https://github.com/ckeditor/ckeditor-dev/blob/dbaaf0b5abd2ac1c8c7e401ac28fd1080c83517c/plugins/find/dialogs/find.js#L380 https://github.com/ckeditor/ckeditor-dev/blob/dbaaf0b5abd2ac1c8c7e401ac28fd1080c83517c/plugins/magicline/plugin.js#L498
Change History (5)
comment:1 Changed 9 years ago by
Description: | modified (diff) |
---|---|
Milestone: | → CKEditor 4.5.4 |
Status: | new → confirmed |
comment:2 Changed 9 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 9 years ago by
Owner: | set to Tade0 |
---|---|
Status: | confirmed → assigned |
comment:4 Changed 9 years ago by
Status: | assigned → review |
---|
comment:5 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | review → closed |
Version: | 4.5.2 → 4.5.3 |
Fixed with git:1213ebe.
Turns out that the builder really passes code twice through the GCC. First, initially to minify it, then at the end to verify the whole package.
Found one more instance in:
https://github.com/ckeditor/ckeditor-dev/blob/dbaaf0b5abd2ac1c8c7e401ac28fd1080c83517c/dev/tasks/plugin.js#L251
and removed it.
I'm still getting this warning though:
It seems to point to the line that starts with "var z=...". Not sure why it's checking the minified version.
Changes pushed to branch:t/13668.