Apply patch #1844301 from Monty Taylor to suppress enum constructor unused warnings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10324 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7c6f8dafa7
commit
97b910d726
2 changed files with 7 additions and 0 deletions
|
|
@ -92,15 +92,18 @@
|
|||
throw new IllegalArgumentException("No enum " + $javaclassname.class + " with value " + swigValue);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private $javaclassname() {
|
||||
this.swigValue = SwigNext.next++;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private $javaclassname(int swigValue) {
|
||||
this.swigValue = swigValue;
|
||||
SwigNext.next = swigValue+1;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private $javaclassname($javaclassname swigEnum) {
|
||||
this.swigValue = swigEnum.swigValue;
|
||||
SwigNext.next = this.swigValue+1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue