diff --git a/src/emc/usr_intf/axis/extensions/_toglmodule.c b/src/emc/usr_intf/axis/extensions/_toglmodule.c index 910808fd6ce..eac07baec73 100644 --- a/src/emc/usr_intf/axis/extensions/_toglmodule.c +++ b/src/emc/usr_intf/axis/extensions/_toglmodule.c @@ -65,7 +65,7 @@ PyObject *install(PyObject *s, PyObject *arg) { PyMethodDef togl_methods[] = { {"install", (PyCFunction)install, METH_O, "install togl in a tkinter application"}, - {NULL} + {} }; static struct PyModuleDef togl_moduledef = { diff --git a/src/hal/halmodule.cc b/src/hal/halmodule.cc index 9b95f5255ea..d52f73bb274 100644 --- a/src/hal/halmodule.cc +++ b/src/hal/halmodule.cc @@ -1829,9 +1829,6 @@ PyObject *stream_element_types(PyObject *_self, void *unused) { return self->pyelt; } -// "deprecated conversion from string constant to 'char *'" occurs due to -// missing const-qualifications in Python headers -#pragma GCC diagnostic ignored "-Wwrite-strings" static PyMemberDef stream_members[] = { {"sampleno", T_UINT, offsetof(streamobj, sampleno), READONLY, "The number of the last successfully read sample"}, @@ -1848,7 +1845,6 @@ static PyGetSetDef stream_getset[] = { {"num_overruns", stream_getter, NULL, NULL, VFC(hal_stream_num_overruns)}, {} }; -#pragma GCC diagnostic warning "-Wwrite-strings" static void pystream_delete(PyObject *_self) { streamobj *self = reinterpret_cast(_self); diff --git a/src/hal/user_comps/xhc-whb04b-6/hal.h b/src/hal/user_comps/xhc-whb04b-6/hal.h index e340223b914..5c41ce4592a 100644 --- a/src/hal/user_comps/xhc-whb04b-6/hal.h +++ b/src/hal/user_comps/xhc-whb04b-6/hal.h @@ -17,7 +17,8 @@ 02111-1307 USA. */ -#pragma once +#ifndef __XHC_WHB04B_6_HAL_H +#define __XHC_WHB04B_6_HAL_H // local includes #include "pendant-types.h" @@ -642,3 +643,4 @@ class Hal bool requestMode(bool isRisingEdge, hal_bit_t* requestPin, hal_bit_t* modeFeedbackPin); }; } +#endif diff --git a/src/hal/user_comps/xhc-whb04b-6/pendant-types.h b/src/hal/user_comps/xhc-whb04b-6/pendant-types.h index 3ab806b915f..4a4633a52ae 100644 --- a/src/hal/user_comps/xhc-whb04b-6/pendant-types.h +++ b/src/hal/user_comps/xhc-whb04b-6/pendant-types.h @@ -17,7 +17,8 @@ 02111-1307 USA. */ -#pragma once +#ifndef __XHC_WHB04B_6_PENDANT_TYPES_H +#define __XHC_WHB04B_6_PENDANT_TYPES_H // system includes #include @@ -85,3 +86,4 @@ class HandWheelCounters std::ostream& operator<<(std::ostream& os, const HandWheelCounters& data); } +#endif diff --git a/src/hal/user_comps/xhc-whb04b-6/pendant.h b/src/hal/user_comps/xhc-whb04b-6/pendant.h index 1112b101f9f..894f2634cff 100644 --- a/src/hal/user_comps/xhc-whb04b-6/pendant.h +++ b/src/hal/user_comps/xhc-whb04b-6/pendant.h @@ -17,7 +17,8 @@ 02111-1307 USA. */ -#pragma once +#ifndef __XHC_WHB04B_6_PENDANT_H +#define __XHC_WHB04B_6_PENDANT_H // local includes #include "pendant-types.h" @@ -611,3 +612,4 @@ class Pendant : public KeyEventListener // ---------------------------------------------------------------------- std::ostream& operator<<(std::ostream& os, const Pendant& data); } +#endif diff --git a/src/hal/user_comps/xhc-whb04b-6/usb.h b/src/hal/user_comps/xhc-whb04b-6/usb.h index fc0dd596f70..bf4d7bb7b84 100644 --- a/src/hal/user_comps/xhc-whb04b-6/usb.h +++ b/src/hal/user_comps/xhc-whb04b-6/usb.h @@ -17,7 +17,8 @@ 02111-1307 USA. */ -#pragma once +#ifndef __XHC_WHB04B_6_USB_H +#define __XHC_WHB04B_6_USB_H // system includes #include @@ -336,3 +337,4 @@ std::ostream& operator<<(std::ostream& os, const UsbOutPackageData& data); std::ostream& operator<<(std::ostream& os, const UsbOutPackageBlockFields& block); std::ostream& operator<<(std::ostream& os, const UsbOutPackageBlocks& blocks); } +#endif diff --git a/src/hal/user_comps/xhc-whb04b-6/xhc-whb04b6.h b/src/hal/user_comps/xhc-whb04b-6/xhc-whb04b6.h index 1823e561098..27e7c4d6f2d 100644 --- a/src/hal/user_comps/xhc-whb04b-6/xhc-whb04b6.h +++ b/src/hal/user_comps/xhc-whb04b-6/xhc-whb04b6.h @@ -17,7 +17,8 @@ 02111-1307 USA. */ -#pragma once +#ifndef __XHC_WHB04B_6_XHC_WHB04B6_H +#define __XHC_WHB04B_6_XHC_WHB04B6_H // system includes #include @@ -110,3 +111,4 @@ class XhcWhb04b6Component : void printHexdump(const UsbInPackage& inPackage); }; } +#endif diff --git a/src/libnml/buffer/tcpmem.cc b/src/libnml/buffer/tcpmem.cc index 3efd1fc8e3b..ddb0381b0b4 100644 --- a/src/libnml/buffer/tcpmem.cc +++ b/src/libnml/buffer/tcpmem.cc @@ -12,11 +12,6 @@ * Last change: ********************************************************************/ -#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4))) -#pragma GCC optimize "-fno-strict-aliasing" -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif - #ifdef __cplusplus extern "C" { #endif