Opened 4 years ago

Closed 4 years ago

#16567 closed bug (fixed)

input: Questionable return in input server

Reported by: kallisti5 Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Servers/input_server Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

clang actually found this one...

C++ objects/haiku/x86_64/release/servers/input/MouseSettings.o 
../src/servers/input/MouseSettings.cpp:430:9: error: cannot initialize return object of type 'MouseSettings *' with an rvalue of type 'int'
        return B_OK;
               ^~~~
../headers/os/support/Errors.h:53:19: note: expanded from macro 'B_OK'
#define B_OK                                            ((int)0)
                                                        ^~~~~~~~
1 error generated.

https://git.haiku-os.org/haiku/tree/src/servers/input/MouseSettings.cpp#n403

I'm actually not sure why gcc thinks that's valid

Change History (2)

comment:2 by waddlesplash, 4 years ago

Resolution: fixed
Status: newclosed

Fix merged in hrev54630.

Note: See TracTickets for help on using tickets.