Procházet zdrojové kódy

ft: 去掉编译警告

master
SisMaker před 3 roky
rodič
revize
ab19b0c607
8 změnil soubory, kde provedl 12 přidání a 11 odebrání
  1. +4
    -4
      src/dataType/shq2.erl
  2. +1
    -0
      src/dataType/utGenTerm.erl
  3. +1
    -1
      src/hotUpdate/u.erl
  4. +1
    -1
      src/hotUpdate/u1.erl
  5. +1
    -1
      src/measure/testQueue.erl
  6. +1
    -1
      src/nifSrc/epqueue/test/integrity_test_SUITE.erl
  7. +2
    -2
      src/template/ut_gen_apu.erl
  8. +1
    -1
      src/testCase/utTestChange.erl

+ 4
- 4
src/dataType/shq2.erl Zobrazit soubor

@ -59,10 +59,10 @@ handle_call(out, _From, State=#state{front=K, rear=K}) ->
{reply, empty, State};
handle_call(out_r, _From, State=#state{front=K, rear=K}) ->
{reply, empty, State};
handle_call(out, _From, State=#state{tab=Tab, front=KF}) ->
handle_call(out, _From, State=#state{front=KF}) ->
V=erase(KF),
{reply, {ok, V}, State#state{front=KF+1}};
handle_call(out_r, _From, State=#state{tab=Tab, rear=KR0}) ->
handle_call(out_r, _From, State=#state{rear=KR0}) ->
KR1=KR0-1,
V=erase(KR1),
{reply, {ok, V}, State#state{rear=KR1}};
@ -71,10 +71,10 @@ handle_call(size, _From, State=#state{front=KF, rear=KR}) ->
handle_call(_Msg, _From, State) ->
{noreply, State}.
handle_cast({in, V}, State=#state{tab=Tab, rear=KR}) ->
handle_cast({in, V}, State=#state{rear=KR}) ->
put(KR, V),
{noreply, State#state{rear=KR+1}};
handle_cast({in_r, V}, State=#state{tab=Tab, front=KF0}) ->
handle_cast({in_r, V}, State=#state{front=KF0}) ->
KF1=KF0-1,
put(KF1, V),
{noreply, State#state{front=KF1}};

+ 1
- 0
src/dataType/utGenTerm.erl Zobrazit soubor

@ -11,6 +11,7 @@
genPid/1,
genTuple/1,
genList/1,
genString/1,
genShortString/1,
genString/1,
genBinary/1,

+ 1
- 1
src/hotUpdate/u.erl Zobrazit soubor

@ -15,7 +15,7 @@
%%----------------------------------------------------
-module(u).
-compile(export_all).
-compile([export_all, nowarn_unused_function, nowarn_unused_vars, nowarn_export_all]).
-include_lib("kernel/include/file.hrl").
%%

+ 1
- 1
src/hotUpdate/u1.erl Zobrazit soubor

@ -15,7 +15,7 @@
%%----------------------------------------------------
-module(u1).
-compile(export_all).
-compile([export_all, nowarn_unused_function, nowarn_unused_vars, nowarn_export_all]).
-include_lib("kernel/include/file.hrl").
c() ->

+ 1
- 1
src/measure/testQueue.erl Zobrazit soubor

@ -1,6 +1,6 @@
-module(testQueue).
-compile([export_all]).
-compile([export_all, nowarn_unused_function, nowarn_unused_vars, nowarn_export_all]).
initFq(Name) ->
fwQueue:new(Name).

+ 1
- 1
src/nifSrc/epqueue/test/integrity_test_SUITE.erl Zobrazit soubor

@ -1,6 +1,6 @@
-module(integrity_test_SUITE).
-compile(export_all).
-compile([export_all, nowarn_unused_function, nowarn_unused_vars, nowarn_export_all]).
all() -> [
{group, epqueue_group}

+ 2
- 2
src/template/ut_gen_apu.erl Zobrazit soubor

@ -32,10 +32,10 @@ start_link() ->
init(_Args) ->
{ok, #state{}}.
xxxCall({xxxCall, Arg1, Arg2}, _State, _From) ->
xxxCall({xxxCall, _Arg1, _Arg2}, _State, _From) ->
{reply, ok}.
xxxCast({xxxCast, Arg1, Arg2}, _State) ->
xxxCast({xxxCast, _Arg1, _Arg2}, _State) ->
kpS.
handleInfo(_Msg, _State) ->

+ 1
- 1
src/testCase/utTestChange.erl Zobrazit soubor

@ -1,6 +1,6 @@
-module(utTestChange).
-compile([export_all]).
-compile([export_all, nowarn_unused_function, nowarn_unused_vars, nowarn_export_all]).
-record(test, {a, b, c, d}).

Načítá se…
Zrušit
Uložit