Skip to content
This repository

fixed warnings about unused imports and export_all #80

Merged
merged 1 commit into from over 2 years ago

2 participants

Richard Carlsson Claes Wikstrom
Richard Carlsson

Since you added +Werror to the makeflags (a good thing), I had problems compiling due to some trivial warnings. This patch takes care of that.

Claes Wikstrom klacke merged commit d6b27e4 into from
Claes Wikstrom klacke closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jan 09, 2012
Richard Carlsson fixed warnings about unused imports and export_all eacdbbd
This page is out of date. Refresh to see the latest.
5 src/mime_type_c.erl
@@ -7,7 +7,8 @@
7 7
8 8 -module(mime_type_c).
9 9 -author('klacke@hyber.org').
10   --compile(export_all).
  10 +
  11 +-export([compile/0]).
11 12
12 13
13 14 %% this module reads the mime.types file and creates
@@ -95,7 +96,7 @@ gen(T) ->
95 96 {ok, Fd} = file:open("mime_types.erl", [write]),
96 97 io:format(Fd,
97 98 "-module(mime_types). ~n"
98   - "-compile(export_all). ~n", []),
  99 + "-export([t/1, revt/1]). ~n", []),
99 100
100 101 L = lists:sort(ets:tab2list(T)),
101 102 special(Fd, "yaws", yaws),
2  src/yaws_api.erl
@@ -122,7 +122,7 @@
122 122 ]).
123 123
124 124
125   --import(lists, [map/2, flatten/1, reverse/1]).
  125 +-import(lists, [flatten/1, reverse/1]).
126 126
127 127 %% these are a bunch of function that are useful inside
128 128 %% yaws scripts
5 src/yaws_generated.template
@@ -10,7 +10,10 @@
10 10 -module(yaws_generated).
11 11 -author('klacke@bluetail.com').
12 12
13   --compile(export_all).
  13 +-export([version/0,
  14 + vardir/0,
  15 + etcdir/0,
  16 + is_local_install/0]).
14 17
15 18 version() -> "%VSN%".
16 19
2  src/yaws_server.erl
@@ -49,7 +49,7 @@
49 49 'PATCH'/3]).
50 50
51 51 -import(lists, [member/2, foreach/2, map/2,
52   - flatten/1, flatmap/2, reverse/1]).
  52 + flatten/1, reverse/1]).
53 53
54 54 -import(yaws_api, [ehtml_expand/1]).
55 55

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.