Title: Warning: enum out of range · Issue #4657 · libgit2/libgit2 · GitHub
Open Graph Title: Warning: enum out of range · Issue #4657 · libgit2/libgit2
X Title: Warning: enum out of range · Issue #4657 · libgit2/libgit2
Description: I am getting the following warning when compiling my bindings against libgit2 0.27.0 with -pedantic: ./libgit2-0.27.0/include/git2/diff.h:214:30: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic] Unfortunately my ...
Open Graph Description: I am getting the following warning when compiling my bindings against libgit2 0.27.0 with -pedantic: ./libgit2-0.27.0/include/git2/diff.h:214:30: warning: ISO C restricts enumerator values to range...
X Description: I am getting the following warning when compiling my bindings against libgit2 0.27.0 with -pedantic: ./libgit2-0.27.0/include/git2/diff.h:214:30: warning: ISO C restricts enumerator values to range...
Opengraph URL: https://github.com/libgit2/libgit2/issues/4657
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Warning: enum out of range","articleBody":"I am getting the following warning when compiling my bindings against libgit2 0.27.0 with `-pedantic`:\r\n\r\n```\r\n./libgit2-0.27.0/include/git2/diff.h:214:30: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]\r\n```\r\n\r\nUnfortunately my repository maintainers insist that the code can be compiled without any `-pedantic` warnings. Here is the offending line:\r\n\r\nhttps://github.com/libgit2/libgit2/blob/d11c4a1a464f10c69d5cc58824e980ea5045d439/include/git2/diff.h#L210-L215\r\n\r\n\r\n","author":{"url":"https://github.com/jeroen","@type":"Person","name":"jeroen"},"datePublished":"2018-05-25T16:54:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/4657/libgit2/issues/4657"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2ff522e0-154a-bf56-dd91-e32399817d48 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B4BA:2F6413:A47F4CE:DD64416:6A5EA12A |
| html-safe-nonce | cd5210f88fd2173b5635984d47497e48bd97be0667c78b11a479df410d193565 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEJBOjJGNjQxMzpBNDdGNENFOkRENjQ0MTY6NkE1RUExMkEiLCJ2aXNpdG9yX2lkIjoiNzcwNzkzMzM1OTg1MjEzNDY5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 081600694ead6bd876ef7a88f8aac9a175eb56ec1a5d0857e40cf7f77b0a4680 |
| hovercard-subject-tag | issue:326596864 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/libgit2/libgit2/4657/issue_layout |
| twitter:image | https://opengraph.githubassets.com/452411e87a7bcb40dd8d8120e8141ef61d06830e79cec3c587600c5ce1f38673/libgit2/libgit2/issues/4657 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/452411e87a7bcb40dd8d8120e8141ef61d06830e79cec3c587600c5ce1f38673/libgit2/libgit2/issues/4657 |
| og:image:alt | I am getting the following warning when compiling my bindings against libgit2 0.27.0 with -pedantic: ./libgit2-0.27.0/include/git2/diff.h:214:30: warning: ISO C restricts enumerator values to range... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeroen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c7e31acb6a895494e518b880f5ccf39604f7fa9a8f2f3c64145efc3b776256d |
| turbo-cache-control | no-preview |
| go-import | github.com/libgit2/libgit2 git https://github.com/libgit2/libgit2.git |
| octolytics-dimension-user_id | 394745 |
| octolytics-dimension-user_login | libgit2 |
| octolytics-dimension-repository_id | 901662 |
| octolytics-dimension-repository_nwo | libgit2/libgit2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 901662 |
| octolytics-dimension-repository_network_root_nwo | libgit2/libgit2 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2d2ac9bdd71d5f53f2b731c9330677e38624e301 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width