Custom Query (33 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (25 - 27 of 33)

1 2 3 4 5 6 7 8 9 10 11
Ticket Owner Reporter Resolution Summary
#9 somebody carns fixed const qualifier in hg_string_t is problematic
Description

The hg_string_t type is typedefed to a "const char*", which means that hg_proc_hg_string_t() cannot be reused to handle encoding of an existing char* without typecasting.

The hg_proc_hg_string_t() encoding function itself also produces warnings in mercury_proc.h if -Wcast-qual is enabled because it is having to cast to non-const pointers internally to free allocated data.

The const qualifier might not be appropriate in that particular typedef?

#8 jsoumagne carns fixed need mechanism to free memory allocated by decoder on client side
Description

The output struct from HG_Forward() may contain memory implicitly allocated by the decoder. It isn't clear how to safely free this memory after inspecting the output struct.

This is only a problem on the client side. The server automatically frees any memory that was allocated as part of decoding the request.

#7 jsoumagne carns fixed -Wundef warnings in mercury headers
Description

If -Wundef is enabled for projects that use the Mercury, then the Mercury headers will produce the following warnings in gcc:

/home/pcarns/working/mercury/install/include/mercury_error.h:25:5: warning: "__STDC_VERSION__" is not defined [-Wundef]
/home/pcarns/working/mercury/install/include/mercury_error.h:31:7: warning: "_WIN32" is not defined [-Wundef]
In file included from ../src/remote/core-rpc.ae:13:0:
/home/pcarns/working/mercury/install/include/mercury_proc.h:197:20: warning: "__GNUC_STDC_INLINE__" is not defined [-Wundef]

These can probably be trivially fixed by replacing the "#if <whatever>" blocks by "if defined <something> && if <whatever>" in the headers.

1 2 3 4 5 6 7 8 9 10 11
Note: See TracQuery for help on using queries.