d625308 pyhbac: Fix warning Wdiscarded-qualifiers

3 files Authored by lslebodn 4 years ago, Committed by pbrezina 4 years ago,
    pyhbac: Fix warning Wdiscarded-qualifiers
    
    The macro PyDoc_STRVAR changed in python 3.8
    and it defined variable with const modifier
    
    src/python/pyhbac.c: In function ‘PyInit_pyhbac’:
    src/python/pyhbac.c:1948:25: warning: passing argument 2 of
       ‘sss_exception_with_doc’ discards ‘const’ qualifier from pointer
       target type [-Wdiscarded-qualifiers]
     1948 |                         HbacError__doc__,
          |                         ^~~~~~~~~~~~~~~~
    In file included from src/python/pyhbac.c:27:
    ./src/util/sss_python.h:33:1: note: expected ‘char *’ but argument
        is of type ‘const char *’
     33 | sss_exception_with_doc(char *name, char *doc, PyObject *base, PyObject *dict);
        | ^~~~~~~~~~~~~~~~~~~~~~
    
    Reviewed-by: Pavel Březina <pbrezina@redhat.com>\
    
        
file modified
+1 -2
file modified
+7 -3
file modified
+2 -1