Skip to content

Commit

Permalink
Fix a warning on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Keno committed Feb 8, 2014
1 parent 5c1b5ad commit 3818db4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ static Type *NoopType;

// --- utilities ---

extern "C" int globalUnique = 0;
extern "C" {
int globalUnique = 0;
}

#include "cgutils.cpp"

Expand Down

2 comments on commit 3818db4

@jiahao
Copy link
Member

@jiahao jiahao commented on 3818db4 Feb 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such syntax, wow

@staticfloat
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.