Commit 5911036
committed
Deduplicate errno values in errno2name()
On Darwin, the EQFULL and ELAST error constants lead to the same errno
value (106), so we get a build error like this:
src/errno_list.cc:228:14: error: duplicate case value '106'
case 106: return "EQFULL";
^
src/errno_list.cc:227:14: note: previous case defined here
case 106: return "ELAST";
^
We can simply throw away the duplicate values, because all that
errno2name is used for is printing the current rules with the -p command
line argument.
Signed-off-by: aszlig <aszlig@nix.build>1 parent fb7b4d9 commit 5911036
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments