Closed Bug 752051 Opened 12 years ago Closed 12 years ago

Get rid of annoying "useless expression" warnings.

Categories

(Add-on SDK Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: irakli, Assigned: irakli)

Details

Attachments

(1 file)

      No description provided.
Assignee: nobody → rFobic
Attachment #621188 - Flags: review?(poirot.alex)
Comment on attachment 621188 [details]
Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/430

  for each();
isn't that obvious, semi-colon looks like any end of line semicolon.
You can't be fooled by similar forms:
  for each() {
  }
  for each() {}
  for each() 
    ;
Attachment #621188 - Flags: review?(poirot.alex) → review+
Commit pushed to master at https://github.com/mozilla/addon-sdk

https://github.com/mozilla/addon-sdk/commit/bce6e1f88aaf230afaa0614e1e270e2050df2f9c
Merge pull request #430 from Gozala/hotfix/emit-warnings@752051

fix Bug 752051 - Get rid of annoying "useless expression" warnings. r=@chameau
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: