-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent warnings for "import public" on an empty .proto file. (#330)
* Prevent warnings for "import proto" on an empty .proto file. Previously, if we reexported an empty module, we ran into `-Wdodgy-imports`. In practice, this came up because of a proto file that only defined an extension, which proto-lens doesn't support yet, so it generated an empty module. I think proto-lens-protoc's architecture makes it nontrivial to detect whether a module has no exports. So I just suppressed the `-Wdodgy-imports` warning. I also converted the other warnings from `-fno-warn-*` to `-Wno-*` for consistency, since GHC has supported that form for a while. * Add missing empty.proto file
- Loading branch information
1 parent
3e9cd10
commit 6e8b73d
Showing
4 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// An empty proto file. | ||
syntax = "proto3"; | ||
|
||
package empty; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters